JC Brand 4 luni în urmă
părinte
comite
91088e9bec

+ 1 - 1
src/headless/plugins/chat/message.js

@@ -28,7 +28,7 @@ class Message extends BaseMessage {
          * @type {Message}
          * @example _converse.api.listen.on('messageInitialized', model => { ... });
          */
-        await api.trigger('messageInitialized', this, { 'Synchronous': true });
+        await api.trigger('messageInitialized', this, { synchronous: true });
         this.initialized.resolve();
     }
 

+ 1 - 1
src/headless/plugins/chat/model.js

@@ -63,7 +63,7 @@ class ChatBox extends ModelWithVCard(ModelWithMessages(ModelWithContact(ColorAwa
          * @type { ChatBox}
          * @example _converse.api.listen.on('chatBoxInitialized', model => { ... });
          */
-        await api.trigger('chatBoxInitialized', this, {'Synchronous': true});
+        await api.trigger('chatBoxInitialized', this, {synchronous: true});
         this.initialized.resolve();
     }
 

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

@@ -118,7 +118,7 @@ class MUC extends ModelWithVCard(ModelWithMessages(ColorAwareModel(ChatBoxBase))
          * @type { MUC }
          * @example _converse.api.listen.on('chatRoomInitialized', model => { ... });
          */
-        await api.trigger('chatRoomInitialized', this, { 'Synchronous': true });
+        await api.trigger('chatRoomInitialized', this, { synchronous: true });
         this.initialized.resolve();
     }
 

+ 1 - 1
src/headless/plugins/roster/contact.js

@@ -49,7 +49,7 @@ class RosterContact extends ModelWithVCard(ColorAwareModel(Model)) {
          * @event _converse#rosterContactInitialized
          * @param {RosterContact} contact
          */
-        await api.trigger('rosterContactInitialized', this, {'Synchronous': true});
+        await api.trigger('rosterContactInitialized', this, {synchronous: true});
         this.initialized.resolve();
     }
 

+ 2 - 2
src/shared/texture/texture.js

@@ -329,7 +329,7 @@ export class Texture extends String {
          *  add TemplateResult objects meant to render rich parts of the message.
          * @example _converse.api.listen.on('beforeMessageBodyTransformed', (view, text) => { ... });
          */
-        await api.trigger('beforeMessageBodyTransformed', this, { 'Synchronous': true });
+        await api.trigger('beforeMessageBodyTransformed', this, { synchronous: true });
 
         this.render_styling && this.addStyling();
         await this.addAnnotations(this.addMentions);
@@ -348,7 +348,7 @@ export class Texture extends String {
          *  add TemplateResult objects meant to render rich parts of the message.
          * @example _converse.api.listen.on('afterMessageBodyTransformed', (view, text) => { ... });
          */
-        await api.trigger('afterMessageBodyTransformed', this, { 'Synchronous': true });
+        await api.trigger('afterMessageBodyTransformed', this, { synchronous: true });
 
         this.payload = this.marshall();
         this.options.show_me_message && this.trimMeMessage();