mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-07 15:43:55 +02:00
Fix assertion violation in media overview.
Regression was introduced in 5e7e7eaa83
.
This commit is contained in:
parent
797433ebe9
commit
a7e552ccab
1 changed files with 3 additions and 2 deletions
|
@ -853,11 +853,12 @@ void ListWidget::itemRemoved(not_null<const HistoryItem*> item) {
|
||||||
FullMsgId ListWidget::computeFullId(
|
FullMsgId ListWidget::computeFullId(
|
||||||
UniversalMsgId universalId) const {
|
UniversalMsgId universalId) const {
|
||||||
Expects(universalId != 0);
|
Expects(universalId != 0);
|
||||||
Expects(universalId > 0 || _migrated != nullptr);
|
|
||||||
|
|
||||||
return (universalId > 0)
|
return (universalId > 0)
|
||||||
? FullMsgId(_peer->id, universalId)
|
? FullMsgId(_peer->id, universalId)
|
||||||
: FullMsgId(_migrated->id, ServerMaxMsgId + universalId);
|
: FullMsgId(
|
||||||
|
(_peer ? _peer.get() : _migrated)->id,
|
||||||
|
ServerMaxMsgId + universalId);
|
||||||
}
|
}
|
||||||
|
|
||||||
auto ListWidget::collectSelectedItems() const -> SelectedItems {
|
auto ListWidget::collectSelectedItems() const -> SelectedItems {
|
||||||
|
|
Loading…
Add table
Reference in a new issue