diff --git a/include/RoomSettings.h b/include/RoomSettings.h
index d9ecff9987681e3a707bba4da96fd34e79f2c9f1..d67e406a52153c840e9fa20466f1bdff0d61a7ca 100644
--- a/include/RoomSettings.h
+++ b/include/RoomSettings.h
@@ -35,10 +35,7 @@ public:
                         settings.setValue(path_, isNotificationsEnabled_);
         };
 
-        bool isNotificationsEnabled()
-        {
-                return isNotificationsEnabled_;
-        };
+        bool isNotificationsEnabled() { return isNotificationsEnabled_; };
 
         void toggleNotifications()
         {
diff --git a/include/ui/LoadingIndicator.h b/include/ui/LoadingIndicator.h
index 2641955a998c9a4be1b1baaf83c96536dc49659b..75920dd88093922c4a21b7a0dd9daded7550add8 100644
--- a/include/ui/LoadingIndicator.h
+++ b/include/ui/LoadingIndicator.h
@@ -19,23 +19,11 @@ public:
         void start();
         void stop();
 
-        QColor color()
-        {
-                return color_;
-        }
-        void setColor(QColor color)
-        {
-                color_ = color;
-        }
-
-        int interval()
-        {
-                return interval_;
-        }
-        void setInterval(int interval)
-        {
-                interval_ = interval;
-        }
+        QColor color() { return color_; }
+        void setColor(QColor color) { color_ = color; }
+
+        int interval() { return interval_; }
+        void setInterval(int interval) { interval_ = interval; }
 
 private slots:
         void onTimeout();
diff --git a/src/ChatPage.cc b/src/ChatPage.cc
index 65fef9de8de3acec86831edd9f10d0ba17424e92..d087c3f3a2fb6dec8b33abea56219855bf20270b 100644
--- a/src/ChatPage.cc
+++ b/src/ChatPage.cc
@@ -32,6 +32,7 @@
 #include "StateEvent.h"
 
 constexpr int MAX_INITIAL_SYNC_FAILURES = 5;
+constexpr int SYNC_RETRY_TIMEOUT        = 10000;
 
 namespace events = matrix::events;
 
@@ -347,7 +348,7 @@ ChatPage::syncFailed(const QString &msg)
                 return;
 
         qWarning() << "Sync error:" << msg;
-        client_->sync();
+        QTimer::singleShot(SYNC_RETRY_TIMEOUT, this, [=]() { client_->sync(); });
 }
 
 // TODO: Should be moved in another class that manages this global list.
diff --git a/src/EmojiItemDelegate.cc b/src/EmojiItemDelegate.cc
index 9fd4600d57483a8ac67c1ca2dc6b9df8ea542c7d..691bee176861878ccc39d75c04bd9cfa18840f1d 100644
--- a/src/EmojiItemDelegate.cc
+++ b/src/EmojiItemDelegate.cc
@@ -26,10 +26,7 @@ EmojiItemDelegate::EmojiItemDelegate(QObject *parent)
         data_ = new Emoji;
 }
 
-EmojiItemDelegate::~EmojiItemDelegate()
-{
-        delete data_;
-}
+EmojiItemDelegate::~EmojiItemDelegate() { delete data_; }
 
 void
 EmojiItemDelegate::paint(QPainter *painter,
diff --git a/src/ui/ThemeManager.cc b/src/ui/ThemeManager.cc
index 172ddc41e6cdae5d85c98e61b15acfd9c118d5ba..7baed1f3bc91123340bd19a465da0ff0ee63299e 100644
--- a/src/ui/ThemeManager.cc
+++ b/src/ui/ThemeManager.cc
@@ -2,10 +2,7 @@
 
 #include "ThemeManager.h"
 
-ThemeManager::ThemeManager()
-{
-        setTheme(new Theme);
-}
+ThemeManager::ThemeManager() { setTheme(new Theme); }
 
 void
 ThemeManager::setTheme(Theme *theme)