mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Fix creating dialog rows for new groups.
This commit is contained in:
parent
5f1cb9d31c
commit
6f885fb6cc
1 changed files with 3 additions and 3 deletions
|
@ -628,9 +628,6 @@ HistoryItem *History::addNewMessage(
|
||||||
setLastMessage(item);
|
setLastMessage(item);
|
||||||
if (type == NewMessageType::Unread) {
|
if (type == NewMessageType::Unread) {
|
||||||
newItemAdded(item);
|
newItemAdded(item);
|
||||||
if (!folderKnown()) {
|
|
||||||
session().api().requestDialogEntry(this);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
return item;
|
return item;
|
||||||
}
|
}
|
||||||
|
@ -1241,6 +1238,9 @@ void History::newItemAdded(not_null<HistoryItem*> item) {
|
||||||
} else {
|
} else {
|
||||||
inboxRead(item);
|
inboxRead(item);
|
||||||
}
|
}
|
||||||
|
if (!folderKnown()) {
|
||||||
|
session().api().requestDialogEntry(this);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
HistoryBlock *History::prepareBlockForAddingItem() {
|
HistoryBlock *History::prepareBlockForAddingItem() {
|
||||||
|
|
Loading…
Add table
Reference in a new issue