2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-09-02 07:35:12 +00:00

Add recent emoji context menu.

This commit is contained in:
John Preston
2023-08-21 16:24:12 +02:00
parent 58d762f130
commit 23dbe4742a
7 changed files with 180 additions and 25 deletions

View File

@@ -689,8 +689,6 @@ public:
style::margins margins = {});
private:
void subscribeToCustomDeviceModel();
const not_null<Main::Session*> _session;
rpl::event_stream<uint64> _terminateRequests;
@@ -1054,18 +1052,6 @@ Main::Session &SessionsContent::ListController::session() const {
return *_session;
}
void SessionsContent::ListController::subscribeToCustomDeviceModel() {
Core::App().settings().deviceModelChanges(
) | rpl::start_with_next([=](const QString &model) {
for (auto i = 0; i != delegate()->peerListFullRowsCount(); ++i) {
const auto row = delegate()->peerListRowAt(i);
if (!row->id()) {
static_cast<Row*>(row.get())->updateName(model);
}
}
}, lifetime());
}
void SessionsContent::ListController::prepare() {
}