Quellcode durchsuchen

MUC has its own method for sending markers

JC Brand vor 4 Jahren
Ursprung
Commit
8bd2114d8a
1 geänderte Dateien mit 3 neuen und 1 gelöschten Zeilen
  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) {