Fixed avatars in adjacent messages

This commit is contained in:
Peter 2018-11-12 03:07:41 +04:00
parent abaa1fef45
commit d30a585fae

View File

@ -22,7 +22,7 @@ final class ChatMessageAvatarAccessoryItem: ListViewAccessoryItem {
func isEqualToItem(_ other: ListViewAccessoryItem) -> Bool {
if case let other as ChatMessageAvatarAccessoryItem = other {
return other.peerId == self.peerId && abs(other.messageTimestamp - self.messageTimestamp) < 5 * 60
return other.peerId == self.peerId && abs(other.messageTimestamp - self.messageTimestamp) < 10 * 60
}
return false