diff options
-rw-r--r-- | src/plugins/mam/Plugin.ts | 2 | ||||
-rw-r--r-- | src/ui/ChatWindow.ts | 2 |
2 files changed, 1 insertions, 3 deletions
diff --git a/src/plugins/mam/Plugin.ts b/src/plugins/mam/Plugin.ts index f1ecf072..187ad36d 100644 --- a/src/plugins/mam/Plugin.ts +++ b/src/plugins/mam/Plugin.ts @@ -64,8 +64,6 @@ 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); diff --git a/src/ui/ChatWindow.ts b/src/ui/ChatWindow.ts index a86763ce..ce03e97e 100644 --- a/src/ui/ChatWindow.ts +++ b/src/ui/ChatWindow.ts @@ -162,7 +162,7 @@ export default class ChatWindow { this.getTranscript().clear(); - this.element.find('.jsxc-message-area').empty(); + this.element.find('.jsxc-message-area').empty().trigger('scroll'); this.getAccount().triggerChatWindowClearedHook(this, this.contact); } |