|
@@ -17,13 +17,13 @@ declare const MUC_base: {
|
|
messages: any;
|
|
messages: any;
|
|
fetchMessages(): any;
|
|
fetchMessages(): any;
|
|
afterMessagesFetched(): void;
|
|
afterMessagesFetched(): void;
|
|
- onMessage(attrs_or_error: import("../chat/types.ts").MessageAttributes | Error): Promise<void>;
|
|
|
|
- getUpdatedMessageAttributes(message: import("../chat/message.js").default, attrs: import("../chat/types.ts").MessageAttributes): object;
|
|
|
|
- updateMessage(message: import("../chat/message.js").default, attrs: import("../chat/types.ts").MessageAttributes): void;
|
|
|
|
- handleCorrection(attrs: import("../chat/types.ts").MessageAttributes | import("./types.ts").MUCMessageAttributes): Promise<import("../chat/message.js").default | void>;
|
|
|
|
- queueMessage(attrs: import("../chat/types.ts").MessageAttributes): any;
|
|
|
|
|
|
+ onMessage(attrs_or_error: import("../chat/types").MessageAttributes | Error): Promise<void>;
|
|
|
|
+ getUpdatedMessageAttributes(message: import("../chat/message.js").default, attrs: import("../chat/types").MessageAttributes): object;
|
|
|
|
+ updateMessage(message: import("../chat/message.js").default, attrs: import("../chat/types").MessageAttributes): void;
|
|
|
|
+ handleCorrection(attrs: import("../chat/types").MessageAttributes | import("./types").MUCMessageAttributes): Promise<import("../chat/message.js").default | void>;
|
|
|
|
+ queueMessage(attrs: import("../chat/types").MessageAttributes): any;
|
|
msg_chain: any;
|
|
msg_chain: any;
|
|
- getOutgoingMessageAttributes(_attrs?: import("../chat/types.ts").MessageAttributes): Promise<import("../chat/types.ts").MessageAttributes>;
|
|
|
|
|
|
+ getOutgoingMessageAttributes(_attrs?: import("../chat/types").MessageAttributes): Promise<import("../chat/types").MessageAttributes>;
|
|
sendMessage(attrs?: any): Promise<import("../chat/message.js").default>;
|
|
sendMessage(attrs?: any): Promise<import("../chat/message.js").default>;
|
|
retractOwnMessage(message: import("../chat/message.js").default): void;
|
|
retractOwnMessage(message: import("../chat/message.js").default): void;
|
|
sendFiles(files: File[]): Promise<void>;
|
|
sendFiles(files: File[]): Promise<void>;
|
|
@@ -34,7 +34,7 @@ declare const MUC_base: {
|
|
onMessageUploadChanged(message: import("../chat/message.js").default): Promise<void>;
|
|
onMessageUploadChanged(message: import("../chat/message.js").default): Promise<void>;
|
|
onScrolledChanged(): void;
|
|
onScrolledChanged(): void;
|
|
pruneHistoryWhenScrolledDown(): void;
|
|
pruneHistoryWhenScrolledDown(): void;
|
|
- shouldShowErrorMessage(attrs: import("../chat/types.ts").MessageAttributes): Promise<boolean>;
|
|
|
|
|
|
+ shouldShowErrorMessage(attrs: import("../chat/types").MessageAttributes): Promise<boolean>;
|
|
clearMessages(): Promise<void>;
|
|
clearMessages(): Promise<void>;
|
|
editEarlierMessage(): void;
|
|
editEarlierMessage(): void;
|
|
editLaterMessage(): any;
|
|
editLaterMessage(): any;
|
|
@@ -57,8 +57,8 @@ declare const MUC_base: {
|
|
handleErrorMessageStanza(stanza: Element): Promise<void>;
|
|
handleErrorMessageStanza(stanza: Element): Promise<void>;
|
|
incrementUnreadMsgsCounter(message: import("../chat/message.js").default): void;
|
|
incrementUnreadMsgsCounter(message: import("../chat/message.js").default): void;
|
|
clearUnreadMsgCounter(): void;
|
|
clearUnreadMsgCounter(): void;
|
|
- handleRetraction(attrs: import("../chat/types.ts").MessageAttributes): Promise<boolean>;
|
|
|
|
- handleReceipt(attrs: import("../chat/types.ts").MessageAttributes): boolean;
|
|
|
|
|
|
+ handleRetraction(attrs: import("../chat/types").MessageAttributes): Promise<boolean>;
|
|
|
|
+ handleReceipt(attrs: import("../chat/types").MessageAttributes): boolean;
|
|
createMessageStanza(message: import("../chat/message.js").default): Promise<any>;
|
|
createMessageStanza(message: import("../chat/message.js").default): Promise<any>;
|
|
pruneHistory(): void;
|
|
pruneHistory(): void;
|
|
debouncedPruneHistory: import("lodash").DebouncedFunc<() => void>;
|
|
debouncedPruneHistory: import("lodash").DebouncedFunc<() => void>;
|
|
@@ -206,9 +206,9 @@ declare class MUC extends MUC_base {
|
|
* @typedef {import('./message.js').default} MUCMessage
|
|
* @typedef {import('./message.js').default} MUCMessage
|
|
* @typedef {import('./occupant.js').default} MUCOccupant
|
|
* @typedef {import('./occupant.js').default} MUCOccupant
|
|
* @typedef {import('./affiliations/utils.js').NonOutcastAffiliation} NonOutcastAffiliation
|
|
* @typedef {import('./affiliations/utils.js').NonOutcastAffiliation} NonOutcastAffiliation
|
|
- * @typedef {import('./parsers').MemberListItem} MemberListItem
|
|
|
|
- * @typedef {import('../chat/types.ts').MessageAttributes} MessageAttributes
|
|
|
|
- * @typedef {import('./types.ts').MUCMessageAttributes} MUCMessageAttributes
|
|
|
|
|
|
+ * @typedef {import('./types').MemberListItem} MemberListItem
|
|
|
|
+ * @typedef {import('../chat/types').MessageAttributes} MessageAttributes
|
|
|
|
+ * @typedef {import('./types').MUCMessageAttributes} MUCMessageAttributes
|
|
* @typedef {module:shared.converse.UserMessage} UserMessage
|
|
* @typedef {module:shared.converse.UserMessage} UserMessage
|
|
* @typedef {import('strophe.js').Builder} Builder
|
|
* @typedef {import('strophe.js').Builder} Builder
|
|
* @typedef {import('../../shared/parsers').StanzaParseError} StanzaParseError
|
|
* @typedef {import('../../shared/parsers').StanzaParseError} StanzaParseError
|
|
@@ -430,7 +430,7 @@ declare class MUC extends MUC_base {
|
|
/**
|
|
/**
|
|
* @param {MessageAttributes} [attrs] - A map of attributes to be saved on the message
|
|
* @param {MessageAttributes} [attrs] - A map of attributes to be saved on the message
|
|
*/
|
|
*/
|
|
- getOutgoingMessageAttributes(attrs?: import("../chat/types.ts").MessageAttributes): Promise<import("../chat/types.ts").MessageAttributes>;
|
|
|
|
|
|
+ getOutgoingMessageAttributes(attrs?: import("../chat/types").MessageAttributes): Promise<import("../chat/types").MessageAttributes>;
|
|
/**
|
|
/**
|
|
* Utility method to construct the JID for the current user as occupant of the groupchat.
|
|
* Utility method to construct the JID for the current user as occupant of the groupchat.
|
|
* @returns {string} - The groupchat JID with the user's nickname added at the end.
|
|
* @returns {string} - The groupchat JID with the user's nickname added at the end.
|
|
@@ -664,7 +664,7 @@ declare class MUC extends MUC_base {
|
|
* @param {MUCMessageAttributes} attrs
|
|
* @param {MUCMessageAttributes} attrs
|
|
* @return {object}
|
|
* @return {object}
|
|
*/
|
|
*/
|
|
- getUpdatedMessageAttributes(message: import("./message.js").default, attrs: import("./types.ts").MUCMessageAttributes): object;
|
|
|
|
|
|
+ getUpdatedMessageAttributes(message: import("./message.js").default, attrs: import("./types").MUCMessageAttributes): object;
|
|
/**
|
|
/**
|
|
* Send a MUC-0410 MUC Self-Ping stanza to room to determine
|
|
* Send a MUC-0410 MUC Self-Ping stanza to room to determine
|
|
* whether we're still joined.
|
|
* whether we're still joined.
|
|
@@ -727,19 +727,19 @@ declare class MUC extends MUC_base {
|
|
* @param {MessageAttributes} attrs
|
|
* @param {MessageAttributes} attrs
|
|
* @returns {boolean}
|
|
* @returns {boolean}
|
|
*/
|
|
*/
|
|
- handleMUCPrivateMessage(attrs: import("../chat/types.ts").MessageAttributes): boolean;
|
|
|
|
|
|
+ handleMUCPrivateMessage(attrs: import("../chat/types").MessageAttributes): boolean;
|
|
/**
|
|
/**
|
|
* @param {MessageAttributes} attrs
|
|
* @param {MessageAttributes} attrs
|
|
* @returns {boolean}
|
|
* @returns {boolean}
|
|
*/
|
|
*/
|
|
- handleMetadataFastening(attrs: import("../chat/types.ts").MessageAttributes): boolean;
|
|
|
|
|
|
+ handleMetadataFastening(attrs: import("../chat/types").MessageAttributes): boolean;
|
|
/**
|
|
/**
|
|
* Given {@link MessageAttributes} look for XEP-0316 Room Notifications and create info
|
|
* Given {@link MessageAttributes} look for XEP-0316 Room Notifications and create info
|
|
* messages for them.
|
|
* messages for them.
|
|
* @param {MUCMessageAttributes} attrs
|
|
* @param {MUCMessageAttributes} attrs
|
|
* @returns {boolean}
|
|
* @returns {boolean}
|
|
*/
|
|
*/
|
|
- handleMEPNotification(attrs: import("./types.ts").MUCMessageAttributes): boolean;
|
|
|
|
|
|
+ handleMEPNotification(attrs: import("./types").MUCMessageAttributes): boolean;
|
|
/**
|
|
/**
|
|
* Returns an already cached message (if it exists) based on the
|
|
* Returns an already cached message (if it exists) based on the
|
|
* passed in attributes map.
|
|
* passed in attributes map.
|
|
@@ -754,7 +754,7 @@ declare class MUC extends MUC_base {
|
|
* should be called.
|
|
* should be called.
|
|
* @param {MUCMessageAttributes|StanzaParseError} attrs_or_error - A promise which resolves to the message attributes.
|
|
* @param {MUCMessageAttributes|StanzaParseError} attrs_or_error - A promise which resolves to the message attributes.
|
|
*/
|
|
*/
|
|
- onMessage(attrs_or_error: import("./types.ts").MUCMessageAttributes | import("../../shared/parsers.js").StanzaParseError): Promise<void>;
|
|
|
|
|
|
+ onMessage(attrs_or_error: import("./types").MUCMessageAttributes | import("../../shared/parsers.js").StanzaParseError): Promise<void>;
|
|
/**
|
|
/**
|
|
* @param {Element} pres
|
|
* @param {Element} pres
|
|
*/
|
|
*/
|