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:
@@ -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() {
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user