mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-14 13:17:08 +02:00
Fix preview messages load in migrated groups.
This commit is contained in:
parent
e47e4ba338
commit
273119fc55
1 changed files with 6 additions and 2 deletions
|
@ -577,8 +577,12 @@ MessagesBarData Item::listMessagesBar(
|
|||
? _replies->computeInboxReadTillFull()
|
||||
: MsgId();
|
||||
const auto migrated = _replies ? nullptr : _history->migrateFrom();
|
||||
const auto migratedTill = migrated ? migrated->inboxReadTillId() : 0;
|
||||
const auto historyTill = _replies ? 0 : _history->inboxReadTillId();
|
||||
const auto migratedTill = (migrated && migrated->unreadCount() > 0)
|
||||
? migrated->inboxReadTillId()
|
||||
: 0;
|
||||
const auto historyTill = (_replies || !_history->unreadCount())
|
||||
? 0
|
||||
: _history->inboxReadTillId();
|
||||
if (!_replies && !migratedTill && !historyTill) {
|
||||
return {};
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue