mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-21 18:50:47 +03:00
Fix call only ringing the second time
This commit is contained in:
parent
2f98a4475f
commit
34ebd2b30e
1 changed files with 3 additions and 2 deletions
|
@ -528,14 +528,15 @@ RoomlistModel::sync(const mtx::responses::Sync &sync_)
|
|||
// addRoom will only add the room, if it doesn't exist
|
||||
addRoom(qroomid);
|
||||
const auto &room_model = models.value(qroomid);
|
||||
room_model->sync(room);
|
||||
// room_model->addEvents(room.timeline);
|
||||
|
||||
connect(room_model.data(),
|
||||
&TimelineModel::newCallEvent,
|
||||
ChatPage::instance()->callManager(),
|
||||
&CallManager::syncEvent,
|
||||
Qt::UniqueConnection);
|
||||
|
||||
room_model->sync(room);
|
||||
|
||||
if (ChatPage::instance()->userSettings()->typingNotifications()) {
|
||||
for (const auto &ev : room.ephemeral.events) {
|
||||
if (auto t =
|
||||
|
|
Loading…
Reference in a new issue