зеркало из https://github.com/nextcloud/talk-ios.git
Handle "reaction_deleted".
Signed-off-by: Ivan Sein <ivan@nextcloud.com>
This commit is contained in:
Родитель
894b87355c
Коммит
a353b1c074
|
@ -376,7 +376,7 @@ NSString * const NCChatControllerDidReceiveCallEndedMessageNotification
|
|||
userInfo:userInfo];
|
||||
}
|
||||
// Notify if "deleted messages" have been received
|
||||
if ([message.systemMessage isEqualToString:@"message_deleted"] || [message.systemMessage isEqualToString:@"reaction"] || [message.systemMessage isEqualToString:@"reaction_revoked"]) {
|
||||
if ([message.systemMessage isEqualToString:@"message_deleted"] || [message.systemMessage isEqualToString:@"reaction"] || [message.systemMessage isEqualToString:@"reaction_revoked"] || [message.systemMessage isEqualToString:@"reaction_deleted"]) {
|
||||
[userInfo setObject:message forKey:@"updateMessage"];
|
||||
[[NSNotificationCenter defaultCenter] postNotificationName:NCChatControllerDidReceiveUpdateMessageNotification
|
||||
object:self
|
||||
|
@ -627,7 +627,8 @@ NSString * const NCChatControllerDidReceiveCallEndedMessageNotification
|
|||
// Notify if an "update messages" have been received
|
||||
if ([message.systemMessage isEqualToString:@"message_deleted"] ||
|
||||
[message.systemMessage isEqualToString:@"reaction"] ||
|
||||
[message.systemMessage isEqualToString:@"reaction_revoked"]) {
|
||||
[message.systemMessage isEqualToString:@"reaction_revoked"] ||
|
||||
[message.systemMessage isEqualToString:@"reaction_deleted"]) {
|
||||
[userInfo setObject:message forKey:@"updateMessage"];
|
||||
[[NSNotificationCenter defaultCenter] postNotificationName:NCChatControllerDidReceiveUpdateMessageNotification
|
||||
object:self
|
||||
|
|
|
@ -3043,7 +3043,8 @@ NSString * const NCChatViewControllerTalkToUserNotification = @"NCChatViewContro
|
|||
if (message.isSystemMessage) {
|
||||
if ([message.systemMessage isEqualToString:@"message_deleted"] ||
|
||||
[message.systemMessage isEqualToString:@"reaction"] ||
|
||||
[message.systemMessage isEqualToString:@"reaction_revoked"]) {
|
||||
[message.systemMessage isEqualToString:@"reaction_revoked"] ||
|
||||
[message.systemMessage isEqualToString:@"reaction_deleted"]) {
|
||||
return (SystemMessageTableViewCell *)[self.tableView dequeueReusableCellWithIdentifier:InvisibleSystemMessageCellIdentifier];
|
||||
}
|
||||
SystemMessageTableViewCell *systemCell = (SystemMessageTableViewCell *)[self.tableView dequeueReusableCellWithIdentifier:SystemMessageCellIdentifier];
|
||||
|
@ -3135,7 +3136,8 @@ NSString * const NCChatViewControllerTalkToUserNotification = @"NCChatViewContro
|
|||
if (message.message.length == 0 ||
|
||||
[message.systemMessage isEqualToString:@"message_deleted"] ||
|
||||
[message.systemMessage isEqualToString:@"reaction"] ||
|
||||
[message.systemMessage isEqualToString:@"reaction_revoked"]) {
|
||||
[message.systemMessage isEqualToString:@"reaction_revoked"] ||
|
||||
[message.systemMessage isEqualToString:@"reaction_deleted"]) {
|
||||
return 0.0;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче