Skips showing empty statuses. Updates poltergeist to report connected.

This commit is contained in:
damencho 2017-08-23 13:41:55 -05:00
parent 24db52ef0f
commit 6e37fe175d
2 changed files with 7 additions and 0 deletions

View File

@ -536,6 +536,10 @@ UI.updateUserRole = user => {
* @param {string} status - The new status. * @param {string} status - The new status.
*/ */
UI.updateUserStatus = (user, status) => { UI.updateUserStatus = (user, status) => {
if (!status) {
return;
}
let displayName = user.getDisplayName(); let displayName = user.getDisplayName();
messageHandler.participantNotification( messageHandler.participantNotification(
displayName, '', 'connected', "dialOut.statusMessage", displayName, '', 'connected', "dialOut.statusMessage",

View File

@ -181,6 +181,9 @@ prosody.events.add_handler("pre-jitsi-authentication", function(session)
-- we will mark it with ignore tag -- we will mark it with ignore tag
local nick = string.sub(username, 0, 8); local nick = string.sub(username, 0, 8);
if (have_poltergeist_occupant(room, nick)) then if (have_poltergeist_occupant(room, nick)) then
-- notify that user connected using the poltergeist
update_poltergeist_occupant_status(
room, nick, "connected");
remove_poltergeist_occupant(room, nick, true); remove_poltergeist_occupant(room, nick, true);
end end