diff --git a/src/ChatPage.cpp b/src/ChatPage.cpp
index 0225ed27887c73ce1b2d85308b1dc1001dd7318e..daae116e5e8bfccd069fd9c942513780e5eb5d32 100644
--- a/src/ChatPage.cpp
+++ b/src/ChatPage.cpp
@@ -83,7 +83,7 @@ ChatPage::ChatPage(QSharedPointer<UserSettings> userSettings, QObject *parent)
     });
 
     connectivityTimer_.setInterval(CHECK_CONNECTIVITY_INTERVAL);
-    connect(&connectivityTimer_, &QTimer::timeout, this, [=]() {
+    connect(&connectivityTimer_, &QTimer::timeout, this, [this]() {
         if (http::client()->access_token().empty()) {
             connectivityTimer_.stop();
             return;