Signed-off-by: Ivan Sein <ivan@nextcloud.com>
This commit is contained in:
Ivan Sein 2022-04-04 11:06:23 +02:00
Родитель 894b87355c
Коммит a353b1c074
2 изменённых файлов: 7 добавлений и 4 удалений

Просмотреть файл

@ -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;
}