2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 06:35:14 +00:00

Implement replies list request.

This commit is contained in:
John Preston
2020-08-28 14:01:55 +04:00
parent 437c9320cd
commit 00cdae0369
24 changed files with 1991 additions and 20 deletions

View File

@@ -272,8 +272,10 @@ void BoxController::prepare() {
}, lifetime());
session().changes().messageUpdates(
Data::MessageUpdate::Flag::CallAdded
) | rpl::start_with_next([=](const Data::MessageUpdate &update) {
Data::MessageUpdate::Flag::NewAdded
) | rpl::filter([=](const Data::MessageUpdate &update) {
return (update.item->media()->call() != nullptr);
}) | rpl::start_with_next([=](const Data::MessageUpdate &update) {
insertRow(update.item, InsertWay::Prepend);
}, lifetime());