Respond to CR.
// FREEBIE
This commit is contained in:
parent
a462cba452
commit
e48d51d084
@ -264,12 +264,20 @@
|
||||
|
||||
switch (self.notificationPreviewType) {
|
||||
case NotificationNamePreview: {
|
||||
BOOL senderIsNoLongerVerified =
|
||||
[OWSIdentityManager.sharedManager verificationStateForRecipientId:message.authorId]
|
||||
== OWSVerificationStateNoLongerVerified;
|
||||
|
||||
notification.category = (senderIsNoLongerVerified ? Signal_Full_New_Message_Category_No_Longer_Verified
|
||||
: Signal_Full_New_Message_Category);
|
||||
// Don't reply from lockscreen if anyone in this conversation is
|
||||
// "no longer verified".
|
||||
BOOL isNoLongerVerified = NO;
|
||||
for (NSString *recipientId in thread.recipientIdentifiers) {
|
||||
if ([OWSIdentityManager.sharedManager verificationStateForRecipientId:recipientId]
|
||||
== OWSVerificationStateNoLongerVerified) {
|
||||
isNoLongerVerified = YES;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
notification.category = (isNoLongerVerified ? Signal_Full_New_Message_Category_No_Longer_Verified
|
||||
: Signal_Full_New_Message_Category);
|
||||
notification.userInfo =
|
||||
@{Signal_Thread_UserInfo_Key : thread.uniqueId, Signal_Message_UserInfo_Key : message.uniqueId};
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user