This commit is contained in:
Ali
2021-09-03 00:45:22 +04:00
parent 8aefa19d31
commit 1fe0d4a75b
53 changed files with 489 additions and 566 deletions

View File

@@ -20,7 +20,7 @@ private enum AdjacentEntryGroupInfo {
private func getAdjacentEntryGroupInfo(_ entry: IntermediateMessageHistoryEntry?, key: Int64) -> (IntermediateMessageHistoryEntry?, AdjacentEntryGroupInfo) {
if let entry = entry {
if let groupingKey = entry.message.groupingKey, let groupInfo = entry.message.groupInfo {
if let groupingKey = entry.message.groupingKey, let _ = entry.message.groupInfo {
if groupingKey == key {
if let groupInfo = entry.message.groupInfo {
return (entry, .sameGroup(groupInfo))
@@ -2516,6 +2516,10 @@ final class MessageHistoryTable: Table {
if let authorId = message.author?.id {
author = peerTable.get(authorId)
}
if let author = author {
peers[author.id] = author
}
if let chatPeer = peerTable.get(message.id.peerId) {
peers[chatPeer.id] = chatPeer