浏览代码

MUC has its own method for sending markers

JC Brand 4 年之前
父节点
当前提交
8bd2114d8a
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 3 1
      src/headless/plugins/muc/muc.js

+ 3 - 1
src/headless/plugins/muc/muc.js

@@ -185,7 +185,9 @@ const ChatRoomMixin = {
      *  message, even if it didn't include a `markable` element.
      */
     sendMarkerForMessage (msg, type = 'displayed', force = false) {
-        if (!msg) return;
+        if (!msg || !api.settings.get('send_chat_markers').includes(type)) {
+            return;
+        }
         if (msg?.get('is_markable') || force) {
             const id = msg.get(`stanza_id ${this.get('jid')}`);
             if (!id) {