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.
This commit is contained in:
Nicolas Werner 2020-06-09 12:49:36 +02:00
parent 3baf11b5c4
commit b9631753dd
1 changed files with 3 additions and 4 deletions

View File

@ -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