소스 검색

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) {