Browse Source

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

JC Brand 5 năm trước cách đây
mục cha
commit
16d2fa3f48
1 tập tin đã thay đổi với 3 bổ sung0 xóa
  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!