mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
Removed toaster for muted participant of a chat lobby.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@6059 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
451c7f5eda
commit
9cfe660e11
@ -40,6 +40,7 @@ public:
|
||||
virtual bool hasPeerStatus() { return false; }
|
||||
virtual bool notifyBlink();
|
||||
void setNickname(const QString &nickname);
|
||||
bool isParticipantMuted(const QString &participant);
|
||||
|
||||
private slots:
|
||||
void showParticipantsFrame(bool show);
|
||||
@ -68,7 +69,6 @@ private:
|
||||
|
||||
void muteParticipant(const QString &nickname);
|
||||
void unMuteParticipant(const QString &nickname);
|
||||
bool isParticipantMuted(const QString &participant);
|
||||
bool isNicknameInLobby(const QString &nickname);
|
||||
|
||||
ChatLobbyId lobbyId;
|
||||
|
@ -41,6 +41,7 @@
|
||||
#include "toaster/FriendRequestToaster.h"
|
||||
|
||||
#include "chat/ChatDialog.h"
|
||||
#include "chat/ChatLobbyDialog.h"
|
||||
#include "chat/ChatWidget.h"
|
||||
#include "FriendsDialog.h"
|
||||
#include "gui/settings/rsharesettings.h"
|
||||
@ -700,6 +701,11 @@ void NotifyQt::UpdateGUI()
|
||||
// do not show when active
|
||||
break;
|
||||
}
|
||||
ChatLobbyDialog *chatLobbyDialog = dynamic_cast<ChatLobbyDialog*>(chatDialog);
|
||||
if (!chatLobbyDialog || chatLobbyDialog->isParticipantMuted(QString::fromUtf8(title.c_str()))) {
|
||||
// participant is muted
|
||||
break;
|
||||
}
|
||||
toaster = new Toaster(new ChatLobbyToaster(id, QString::fromUtf8(title.c_str()), QString::fromUtf8(msg.c_str())));
|
||||
}
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user