mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +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()
|
? _replies->computeInboxReadTillFull()
|
||||||
: MsgId();
|
: MsgId();
|
||||||
const auto migrated = _replies ? nullptr : _history->migrateFrom();
|
const auto migrated = _replies ? nullptr : _history->migrateFrom();
|
||||||
const auto migratedTill = migrated ? migrated->inboxReadTillId() : 0;
|
const auto migratedTill = (migrated && migrated->unreadCount() > 0)
|
||||||
const auto historyTill = _replies ? 0 : _history->inboxReadTillId();
|
? migrated->inboxReadTillId()
|
||||||
|
: 0;
|
||||||
|
const auto historyTill = (_replies || !_history->unreadCount())
|
||||||
|
? 0
|
||||||
|
: _history->inboxReadTillId();
|
||||||
if (!_replies && !migratedTill && !historyTill) {
|
if (!_replies && !migratedTill && !historyTill) {
|
||||||
return {};
|
return {};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue