summary refs log tree commit diff
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2020-06-09 12:49:36 +0200
committerNicolas Werner <nicolas.werner@hotmail.de>2020-06-09 12:49:36 +0200
commitb9631753dd30453ec559a5046369c987f216add0 (patch)
tree3ba69eefee3fb83131ffdd9007dbb5bc29ad103b
parentFix unused capture (diff)
downloadnheko-b9631753dd30453ec559a5046369c987f216add0.tar.xz
Reenable custom status messages
This still leaves out setting a client to online/offline, since that
seems to be causing the CPU issues with synapse.
-rw-r--r--src/UserInfoWidget.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/UserInfoWidget.cpp b/src/UserInfoWidget.cpp
index dcaf0d09..40a3221d 100644
--- a/src/UserInfoWidget.cpp
+++ b/src/UserInfoWidget.cpp
@@ -124,6 +124,8 @@ UserInfoWidget::UserInfoWidget(QWidget *parent)
                 if (ok && !text.isEmpty())
                         ChatPage::instance()->setStatus(text);
         });
+
+#if 0 // disable presence menu until issues in synapse are resolved
         auto setAutoPresence = menu->addAction(tr("Set presence automatically"));
         connect(setAutoPresence, &QAction::triggered, this, []() {
                 ChatPage::instance()->userSettings()->setPresence(
@@ -146,16 +148,13 @@ UserInfoWidget::UserInfoWidget(QWidget *parent)
                 ChatPage::instance()->userSettings()->setPresence(UserSettings::Presence::Offline);
                 ChatPage::instance()->setStatus(ChatPage::instance()->status());
         });
+#endif
 }
 
 void
 UserInfoWidget::contextMenuEvent(QContextMenuEvent *event)
 {
-#if 0 // disable presence menu until issues in synapse are resolved
         menu->popup(event->globalPos());
-#else
-        Q_UNUSED(event);
-#endif
 }
 
 void