mirror of https://github.com/procxx/kepka.git
Fix creating dialog rows for new groups.
This commit is contained in:
parent
5f1cb9d31c
commit
6f885fb6cc
|
@ -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…
Reference in New Issue