Skip to content
Snippets Groups Projects
Verified Commit 34ebd2b3 authored by Nicolas Werner's avatar Nicolas Werner
Browse files

Fix call only ringing the second time

parent 2f98a447
No related branches found
No related tags found
No related merge requests found
Pipeline #5274 passed
...@@ -528,14 +528,15 @@ RoomlistModel::sync(const mtx::responses::Sync &sync_) ...@@ -528,14 +528,15 @@ RoomlistModel::sync(const mtx::responses::Sync &sync_)
// addRoom will only add the room, if it doesn't exist // addRoom will only add the room, if it doesn't exist
addRoom(qroomid); addRoom(qroomid);
const auto &room_model = models.value(qroomid); const auto &room_model = models.value(qroomid);
room_model->sync(room);
// room_model->addEvents(room.timeline);
connect(room_model.data(), connect(room_model.data(),
&TimelineModel::newCallEvent, &TimelineModel::newCallEvent,
ChatPage::instance()->callManager(), ChatPage::instance()->callManager(),
&CallManager::syncEvent, &CallManager::syncEvent,
Qt::UniqueConnection); Qt::UniqueConnection);
room_model->sync(room);
if (ChatPage::instance()->userSettings()->typingNotifications()) { if (ChatPage::instance()->userSettings()->typingNotifications()) {
for (const auto &ev : room.ephemeral.events) { for (const auto &ev : room.ephemeral.events) {
if (auto t = if (auto t =
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment