Explorar o código

MUC has its own method for sending markers

JC Brand %!s(int64=4) %!d(string=hai) anos
pai
achega
8bd2114d8a
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  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) {