|
|
@ -264,12 +264,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
switch (self.notificationPreviewType) {
|
|
|
|
switch (self.notificationPreviewType) {
|
|
|
|
case NotificationNamePreview: {
|
|
|
|
case NotificationNamePreview: {
|
|
|
|
BOOL senderIsNoLongerVerified =
|
|
|
|
|
|
|
|
[OWSIdentityManager.sharedManager verificationStateForRecipientId:message.authorId]
|
|
|
|
|
|
|
|
== OWSVerificationStateNoLongerVerified;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
notification.category = (senderIsNoLongerVerified ? Signal_Full_New_Message_Category_No_Longer_Verified
|
|
|
|
// Don't reply from lockscreen if anyone in this conversation is
|
|
|
|
: Signal_Full_New_Message_Category);
|
|
|
|
// "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 =
|
|
|
|
notification.userInfo =
|
|
|
|
@{Signal_Thread_UserInfo_Key : thread.uniqueId, Signal_Message_UserInfo_Key : message.uniqueId};
|
|
|
|
@{Signal_Thread_UserInfo_Key : thread.uniqueId, Signal_Message_UserInfo_Key : message.uniqueId};
|
|
|
|
|
|
|
|
|
|
|
|