mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-07-24 20:20:51 +00:00
Fix apply read index
This commit is contained in:
parent
4b47c48685
commit
3a47dab24e
@ -159,8 +159,7 @@ func _internal_togglePeerUnreadMarkInteractively(transaction: Transaction, netwo
|
||||
displayAsRegularChat = cachedData.viewForumAsMessages.knownValue ?? false
|
||||
}
|
||||
|
||||
if let channel = peer as? TelegramChannel {
|
||||
if channel.isForumOrMonoForum, !displayAsRegularChat {
|
||||
if let channel = peer as? TelegramChannel, channel.isForumOrMonoForum, !displayAsRegularChat {
|
||||
for item in transaction.getMessageHistoryThreadIndex(peerId: peerId, limit: 20) {
|
||||
guard var data = transaction.getMessageHistoryThreadInfo(peerId: peerId, threadId: item.threadId)?.data.get(MessageHistoryThreadData.self) else {
|
||||
continue
|
||||
@ -188,7 +187,6 @@ func _internal_togglePeerUnreadMarkInteractively(transaction: Transaction, netwo
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
} else {
|
||||
let principalNamespace: MessageId.Namespace
|
||||
if peerId.namespace == Namespaces.Peer.SecretChat {
|
||||
|
Loading…
x
Reference in New Issue
Block a user