parent
73bc1ffa7b
commit
43ba4d5ed5
@ -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 New Issue
Block a user