mirror of
https://github.com/TelegramMessenger/Telegram-iOS.git
synced 2026-07-06 03:33:41 +02:00
Temp
This commit is contained in:
parent
33d598cbe7
commit
3d3232eedc
13 changed files with 205 additions and 113 deletions
|
|
@ -433,6 +433,12 @@ func chatHistoryEntriesForView(
|
|||
var i = 0
|
||||
let unreadEntry: ChatHistoryEntry = .UnreadEntry(maxReadIndex, presentationData)
|
||||
for entry in entries {
|
||||
if case let .MessageGroupEntry(_, messages, _) = entry {
|
||||
if !messages.isEmpty && maxReadIndex >= messages[0].0.index {
|
||||
i += 1
|
||||
continue
|
||||
}
|
||||
}
|
||||
if entry > unreadEntry {
|
||||
if i != 0 {
|
||||
entries.insert(unreadEntry, at: i)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue