mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-22 19:08:58 +03:00
parent
73bc1ffa7b
commit
43ba4d5ed5
2 changed files with 9 additions and 0 deletions
|
@ -144,6 +144,9 @@ TopRoomBar::TopRoomBar(QWidget *parent)
|
||||||
menu_->addAction(leaveRoom_);
|
menu_->addAction(leaveRoom_);
|
||||||
|
|
||||||
connect(settingsBtn_, &QPushButton::clicked, this, [=]() {
|
connect(settingsBtn_, &QPushButton::clicked, this, [=]() {
|
||||||
|
if (roomSettings_.isNull())
|
||||||
|
return;
|
||||||
|
|
||||||
if (roomSettings_->isNotificationsEnabled())
|
if (roomSettings_->isNotificationsEnabled())
|
||||||
toggleNotifications_->setText(tr("Disable notifications"));
|
toggleNotifications_->setText(tr("Disable notifications"));
|
||||||
else
|
else
|
||||||
|
|
|
@ -68,6 +68,9 @@ TimelineViewManager::messageSendFailed(const QString &roomid, int txn_id)
|
||||||
void
|
void
|
||||||
TimelineViewManager::queueTextMessage(const QString &msg)
|
TimelineViewManager::queueTextMessage(const QString &msg)
|
||||||
{
|
{
|
||||||
|
if (active_room_.isEmpty())
|
||||||
|
return;
|
||||||
|
|
||||||
auto room_id = active_room_;
|
auto room_id = active_room_;
|
||||||
auto view = views_[room_id];
|
auto view = views_[room_id];
|
||||||
|
|
||||||
|
@ -77,6 +80,9 @@ TimelineViewManager::queueTextMessage(const QString &msg)
|
||||||
void
|
void
|
||||||
TimelineViewManager::queueEmoteMessage(const QString &msg)
|
TimelineViewManager::queueEmoteMessage(const QString &msg)
|
||||||
{
|
{
|
||||||
|
if (active_room_.isEmpty())
|
||||||
|
return;
|
||||||
|
|
||||||
auto room_id = active_room_;
|
auto room_id = active_room_;
|
||||||
auto view = views_[room_id];
|
auto view = views_[room_id];
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue