diff --git a/qortal-ui-plugins/plugins/core/components/ChatPage.js b/qortal-ui-plugins/plugins/core/components/ChatPage.js index eb1f7926..861cb419 100644 --- a/qortal-ui-plugins/plugins/core/components/ChatPage.js +++ b/qortal-ui-plugins/plugins/core/components/ChatPage.js @@ -103,7 +103,8 @@ class ChatPage extends LitElement { openUserInfo: { type: Boolean }, selectedHead: { type: Object }, userName: { type: String }, - goToRepliedMessage: {attribute: false} + goToRepliedMessage: {attribute: false}, + isLoadingGoToRepliedMessage: {type: Object} } } @@ -890,6 +891,12 @@ class ChatPage extends LitElement { this.currentEditor = '_chatEditorDOM' this.initialChat = this.initialChat.bind(this) this.isEnabledChatEnter = true + this.isLoadingGoToRepliedMessage = { + isLoading: false, + top: 0, + left: 0, + offsetHeight: 0 + } } _toggle(value) { @@ -957,6 +964,9 @@ class ChatPage extends LitElement { ` : this.renderChatScroller()} + ${this.isLoadingGoToRepliedMessage && this.isLoadingGoToRepliedMessage.loading ? html` +
+ ` : ''}