mirror of
https://github.com/Qortal/qortal-ui.git
synced 2025-02-11 17:55:51 +00:00
revert back to welcome page in chat
This commit is contained in:
parent
355e102a02
commit
b2fca5a6c6
@ -222,8 +222,8 @@ class Chat extends LitElement {
|
||||
<span>${translate("chatpage.cchange5")} <mwc-icon style="font-size: 16px; vertical-align: bottom;">keyboard_arrow_down</mwc-icon></span>
|
||||
</div>
|
||||
<div class="chat-history">
|
||||
${this.isEmptyArray(this.chatHeads) ? html`${this.renderChatWelcomePage()}` : html`${this.renderChatPage()}`}
|
||||
|
||||
|
||||
${this.activeChatHeadUrl ? html`${this.renderChatPage()}` : html`${this.renderChatWelcomePage()}`}
|
||||
</div>
|
||||
</div>
|
||||
<!-- Start Chatting Dialog -->
|
||||
@ -817,7 +817,6 @@ class Chat extends LitElement {
|
||||
}
|
||||
|
||||
renderChatPage() {
|
||||
console.log('this.chatHeads', this.chatHeads, this.activeChatHeadUrl)
|
||||
// Check for the chat ID from and render chat messages
|
||||
// Else render Welcome to Q-CHat
|
||||
|
||||
@ -864,9 +863,6 @@ class Chat extends LitElement {
|
||||
}
|
||||
|
||||
this.chatHeads = chatHeadMasterList.sort(compareArgs)
|
||||
if(!this.activeChatHeadUrl && this.chatHeads.length > 0){
|
||||
this.activeChatHeadUrl = this.chatHeads[0].url
|
||||
}
|
||||
}
|
||||
|
||||
getChatHeadFromState(chatObj) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user