mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-26 21:18:48 +03:00
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:
parent
3baf11b5c4
commit
b9631753dd
1 changed files with 3 additions and 4 deletions
|
@ -124,6 +124,8 @@ UserInfoWidget::UserInfoWidget(QWidget *parent)
|
||||||
if (ok && !text.isEmpty())
|
if (ok && !text.isEmpty())
|
||||||
ChatPage::instance()->setStatus(text);
|
ChatPage::instance()->setStatus(text);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
#if 0 // disable presence menu until issues in synapse are resolved
|
||||||
auto setAutoPresence = menu->addAction(tr("Set presence automatically"));
|
auto setAutoPresence = menu->addAction(tr("Set presence automatically"));
|
||||||
connect(setAutoPresence, &QAction::triggered, this, []() {
|
connect(setAutoPresence, &QAction::triggered, this, []() {
|
||||||
ChatPage::instance()->userSettings()->setPresence(
|
ChatPage::instance()->userSettings()->setPresence(
|
||||||
|
@ -146,16 +148,13 @@ UserInfoWidget::UserInfoWidget(QWidget *parent)
|
||||||
ChatPage::instance()->userSettings()->setPresence(UserSettings::Presence::Offline);
|
ChatPage::instance()->userSettings()->setPresence(UserSettings::Presence::Offline);
|
||||||
ChatPage::instance()->setStatus(ChatPage::instance()->status());
|
ChatPage::instance()->setStatus(ChatPage::instance()->status());
|
||||||
});
|
});
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
UserInfoWidget::contextMenuEvent(QContextMenuEvent *event)
|
UserInfoWidget::contextMenuEvent(QContextMenuEvent *event)
|
||||||
{
|
{
|
||||||
#if 0 // disable presence menu until issues in synapse are resolved
|
|
||||||
menu->popup(event->globalPos());
|
menu->popup(event->globalPos());
|
||||||
#else
|
|
||||||
Q_UNUSED(event);
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
Loading…
Reference in a new issue