mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-25 12:38:48 +03:00
Fix own messages not showing as encrypted
This commit is contained in:
parent
d5e1475a5c
commit
b00e624fb0
1 changed files with 7 additions and 7 deletions
|
@ -477,14 +477,14 @@ TimelineModel::addEvents(const mtx::responses::Timeline &timeline)
|
||||||
|
|
||||||
std::vector<QString> ids = internalAddEvents(timeline.events);
|
std::vector<QString> ids = internalAddEvents(timeline.events);
|
||||||
|
|
||||||
if (ids.empty())
|
if (!ids.empty()) {
|
||||||
return;
|
beginInsertRows(QModelIndex(), 0, static_cast<int>(ids.size() - 1));
|
||||||
|
this->eventOrder.insert(this->eventOrder.begin(), ids.rbegin(), ids.rend());
|
||||||
|
endInsertRows();
|
||||||
|
}
|
||||||
|
|
||||||
beginInsertRows(QModelIndex(), 0, static_cast<int>(ids.size() - 1));
|
if (!timeline.events.empty())
|
||||||
this->eventOrder.insert(this->eventOrder.begin(), ids.rbegin(), ids.rend());
|
updateLastMessage();
|
||||||
endInsertRows();
|
|
||||||
|
|
||||||
updateLastMessage();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
template<typename T>
|
template<typename T>
|
||||||
|
|
Loading…
Reference in a new issue