summary refs log tree commit diff
path: root/src/ChatPage.cc
diff options
context:
space:
mode:
authorKonstantinos Sideris <sideris.konstantin@gmail.com>2017-10-21 18:53:15 +0300
committerKonstantinos Sideris <sideris.konstantin@gmail.com>2017-10-21 18:53:15 +0300
commit3cae6c39831fe6b1e9661fb2af7034105a5f289a (patch)
tree49ceb3e81b808d60ae0ef7b831043c0c7ffbba85 /src/ChatPage.cc
parentClean unread count when the user logs out (diff)
downloadnheko-3cae6c39831fe6b1e9661fb2af7034105a5f289a.tar.xz
Remove ui flickering when adding new timeline events
Diffstat (limited to 'src/ChatPage.cc')
-rw-r--r--src/ChatPage.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/ChatPage.cc b/src/ChatPage.cc
index 6d8c7cea..5df8dec2 100644
--- a/src/ChatPage.cc
+++ b/src/ChatPage.cc
@@ -15,6 +15,7 @@
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 
+#include <QApplication>
 #include <QDebug>
 #include <QSettings>
 
@@ -413,6 +414,8 @@ ChatPage::syncCompleted(const SyncResponse &response)
 
                 if (it.key() == current_room_)
                         changeTopRoomInfo(it.key());
+
+                QApplication::processEvents();
         }
 
         auto leave = response.rooms().leave();
@@ -472,6 +475,8 @@ ChatPage::initialSyncCompleted(const SyncResponse &response)
                         if (!url.toString().isEmpty())
                                 AvatarProvider::setAvatarUrl(uid, url);
                 }
+
+                QApplication::processEvents();
         }
 
         try {