mirror of
https://github.com/Qortal/qortal-ui.git
synced 2025-03-27 07:45:54 +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>
|
<span>${translate("chatpage.cchange5")} <mwc-icon style="font-size: 16px; vertical-align: bottom;">keyboard_arrow_down</mwc-icon></span>
|
||||||
</div>
|
</div>
|
||||||
<div class="chat-history">
|
<div class="chat-history">
|
||||||
${this.isEmptyArray(this.chatHeads) ? html`${this.renderChatWelcomePage()}` : html`${this.renderChatPage()}`}
|
|
||||||
|
${this.activeChatHeadUrl ? html`${this.renderChatPage()}` : html`${this.renderChatWelcomePage()}`}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<!-- Start Chatting Dialog -->
|
<!-- Start Chatting Dialog -->
|
||||||
@ -817,7 +817,6 @@ class Chat extends LitElement {
|
|||||||
}
|
}
|
||||||
|
|
||||||
renderChatPage() {
|
renderChatPage() {
|
||||||
console.log('this.chatHeads', this.chatHeads, this.activeChatHeadUrl)
|
|
||||||
// Check for the chat ID from and render chat messages
|
// Check for the chat ID from and render chat messages
|
||||||
// Else render Welcome to Q-CHat
|
// Else render Welcome to Q-CHat
|
||||||
|
|
||||||
@ -864,9 +863,6 @@ class Chat extends LitElement {
|
|||||||
}
|
}
|
||||||
|
|
||||||
this.chatHeads = chatHeadMasterList.sort(compareArgs)
|
this.chatHeads = chatHeadMasterList.sort(compareArgs)
|
||||||
if(!this.activeChatHeadUrl && this.chatHeads.length > 0){
|
|
||||||
this.activeChatHeadUrl = this.chatHeads[0].url
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
getChatHeadFromState(chatObj) {
|
getChatHeadFromState(chatObj) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user