From a23c586cde75ebaa7583017f96a73e5cf9e7d348 Mon Sep 17 00:00:00 2001 From: Loren Burkholder Date: Tue, 31 Aug 2021 17:58:00 -0400 Subject: [PATCH] make lint --- src/UserSettingsPage.cpp | 5 ++--- src/timeline/TimelineModel.cpp | 7 +++---- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/src/UserSettingsPage.cpp b/src/UserSettingsPage.cpp index 60ba18aa..d79cadbe 100644 --- a/src/UserSettingsPage.cpp +++ b/src/UserSettingsPage.cpp @@ -812,9 +812,8 @@ UserSettingsPage::UserSettingsPage(QSharedPointer settings, QWidge if (JdenticonProvider::isAvailable()) { useIdenticon_ = new Toggle{this}; useIdenticon_->setChecked(settings_->useIdenticon()); - } - else - useIdenticon_ = nullptr; + } else + useIdenticon_ = nullptr; if (!settings_->tray()) { startInTrayToggle_->setState(false); diff --git a/src/timeline/TimelineModel.cpp b/src/timeline/TimelineModel.cpp index 0e1e8f5d..d5c39bbe 100644 --- a/src/timeline/TimelineModel.cpp +++ b/src/timeline/TimelineModel.cpp @@ -818,10 +818,9 @@ TimelineModel::syncState(const mtx::responses::State &s) emit roomNameChanged(); emit roomMemberCountChanged(); - if (roomMemberCount() <= 2) - { - emit isDirectChanged(); - emit directChatAvatarMxidChanged(); + if (roomMemberCount() <= 2) { + emit isDirectChanged(); + emit directChatAvatarMxidChanged(); } } else if (std::holds_alternative>(e)) { this->isEncrypted_ = cache::isRoomEncrypted(room_id_.toStdString());