浏览代码

muc-views: Don't show subject change message in new MUC

JC Brand 5 年之前
父节点
当前提交
16d2fa3f48
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      src/converse-muc-views.js

+ 3 - 0
src/converse-muc-views.js

@@ -1963,6 +1963,9 @@ converse.plugins.add('converse-muc-views', {
             },
 
             setChatRoomSubject () {
+                if (!subject.text && !subject.author) {
+                    return; // Probably a new MUC
+                }
                 // For translators: the %1$s and %2$s parts will get
                 // replaced by the user and topic text respectively
                 // Example: Topic set by JC Brand to: Hello World!