Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/jsxc/jsxc.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormightymop <totzkotz@gmail.com>2021-10-08 16:26:56 +0300
committersualko <klaus@jsxc.org>2021-12-29 17:49:46 +0300
commitafa23f048d1f38f75b2706cfbb83e191c519da43 (patch)
tree3232054e7a23ec6b9a9e20d9a75ff18570b9783e
parenta4c182f00ab13e831109fff170e5c8b9fc07f81b (diff)
fix(mam): add loadbutton to clear event
-rw-r--r--src/plugins/mam/Plugin.ts8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/plugins/mam/Plugin.ts b/src/plugins/mam/Plugin.ts
index ca54aa62..f1ecf072 100644
--- a/src/plugins/mam/Plugin.ts
+++ b/src/plugins/mam/Plugin.ts
@@ -64,6 +64,8 @@ export default class MessageArchiveManagementPlugin extends AbstractPlugin {
if (this.supportCache[archiveJid.bare]) {
this.getArchive(contact.getJid()).clear();
}
+
+ this.addLoadButtonIfEnabled(chatWindow, contact);
});
this.pluginAPI.getConnection().registerHandler(this.onMamMessage, null, 'message', null);
@@ -163,12 +165,6 @@ export default class MessageArchiveManagementPlugin extends AbstractPlugin {
messageAreaElement.trigger('scroll');
- messageAreaElement.on("DOMSubtreeModified",function(e){
- if ($(this).text().trim().length===0){
- $(this).parent().find('.jsxc-mam-load-more').addClass('jsxc-show');
- }
- });
-
if (!archive.isExhausted()) {
chatWindowElement.addClass(classNameMamEnable);
}