浏览代码

Skips showing empty statuses. Updates poltergeist to report connected.

master
damencho 8 年前
父节点
当前提交
6e37fe175d
共有 2 个文件被更改,包括 7 次插入0 次删除
  1. 4
    0
      modules/UI/UI.js
  2. 3
    0
      resources/prosody-plugins/mod_muc_poltergeist.lua

+ 4
- 0
modules/UI/UI.js 查看文件

@@ -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 查看文件

@@ -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
 

正在加载...
取消
保存