HomeWildfire Games

Clientside Lobby support for muted players (visitor role).

Description

Clientside Lobby support for muted players (visitor role).
Displays a chat message and a notification in the player details to everyone if someone was muted and
hides the chat input to visitors.

Differential Revision: https://code.wildfiregames.com/D339
Reviewed By: user1

Event Timeline

elexis added a subscriber: user1.Nov 26 2017, 7:12 PM
elexis added inline comments.
/ps/trunk/binaries/data/mods/public/gui/lobby/lobby.js
189

@user1 has reported that sometimes we get the %(nick)s is not a moderator anymore string when someone was unmuted after returning from a game. The reason must be that this role variable is not set at the time when the message is received but at the time of displaying it (which can be hours later after several role changes).

It is easy to solve by extending the CreateMessage call in XmppClient.cpp to also send that role.

elexis added inline comments.Nov 26 2017, 11:53 PM
/ps/trunk/binaries/data/mods/public/gui/lobby/lobby.js
189