mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-11-25 09:32:46 +00:00
Ignore topic data in chat list and notifications when chat is not a forum anymore
This commit is contained in:
parent
af36deaac6
commit
3eb2ccb1a5
@ -1953,6 +1953,9 @@ public func messagesForNotification(transaction: Transaction, id: MessageId, alw
|
||||
}
|
||||
|
||||
if let channel = message.peers[message.id.peerId] as? TelegramChannel {
|
||||
if !channel.flags.contains(.isForum) {
|
||||
threadData = nil
|
||||
}
|
||||
switch channel.participationStatus {
|
||||
case .kicked, .left:
|
||||
return ([], false, sound, false, threadData)
|
||||
|
||||
@ -457,8 +457,13 @@ extension EngineChatList.Item {
|
||||
|
||||
let readCounters = readState.flatMap(EnginePeerReadCounters.init)
|
||||
|
||||
if let channel = renderedPeer.peer as? TelegramChannel, channel.flags.contains(.isForum) {
|
||||
if let channel = renderedPeer.peer as? TelegramChannel {
|
||||
if channel.flags.contains(.isForum) {
|
||||
draft = nil
|
||||
} else {
|
||||
forumTopicDataValue = nil
|
||||
topForumTopicItems = []
|
||||
}
|
||||
}
|
||||
|
||||
self.init(
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user