2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 22:46:10 +00:00

Feed top bar placeholder.

This commit is contained in:
John Preston
2018-01-22 20:39:20 +03:00
parent 47ad5ea98a
commit b9ad8bb700
15 changed files with 156 additions and 99 deletions

View File

@@ -1027,9 +1027,11 @@ namespace {
void feedOutboxRead(const PeerId &peer, MsgId upTo, TimeId when) {
if (auto history = App::historyLoaded(peer)) {
history->outboxRead(upTo);
if (history->lastMsg && history->lastMsg->out() && history->lastMsg->id <= upTo) {
if (App::main()) {
App::main()->dlgUpdated(history, history->lastMsg->id);
if (history->lastMsg
&& history->lastMsg->out()
&& history->lastMsg->id <= upTo) {
if (const auto main = App::main()) {
main->repaintDialogRow(history, history->lastMsg->id);
}
}
history->updateChatListEntry();