Explorar el Código

Skips showing empty statuses. Updates poltergeist to report connected.

master
damencho hace 8 años
padre
commit
6e37fe175d
Se han modificado 2 ficheros con 7 adiciones y 0 borrados
  1. 4
    0
      modules/UI/UI.js
  2. 3
    0
      resources/prosody-plugins/mod_muc_poltergeist.lua

+ 4
- 0
modules/UI/UI.js Ver fichero

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

+ 3
- 0
resources/prosody-plugins/mod_muc_poltergeist.lua Ver fichero

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

Loading…
Cancelar
Guardar