mirror of
https://github.com/Qortal/qortal-ui.git
synced 2025-02-11 09:45:52 +00:00
commit
5011917a68
@ -1250,17 +1250,9 @@ class MessageTemplate extends LitElement {
|
||||
</span>
|
||||
`
|
||||
|
||||
fromHubOk = html`
|
||||
<div style="margin-top:3px;">
|
||||
<mwc-icon style="font-size:16px; color: var(--chat-group);">key</mwc-icon>
|
||||
</div>
|
||||
`
|
||||
fromHubOk = html` <mwc-icon style="font-size:16px; color: var(--chat-group);">key</mwc-icon> `
|
||||
|
||||
fromHubNo = html`
|
||||
<div style="margin-top:3px;">
|
||||
<mwc-icon style="font-size:16px; color: var(--chat-group);">key_off</mwc-icon>
|
||||
</div>
|
||||
`
|
||||
fromHubNo = html` <mwc-icon style="font-size:16px; color: var(--chat-group);">key_off</mwc-icon> `
|
||||
|
||||
if (repliedToData) {
|
||||
try {
|
||||
@ -1678,27 +1670,39 @@ class MessageTemplate extends LitElement {
|
||||
${this.isInProgress ? html`
|
||||
<p>${translate('chatpage.cchange91')}</p>
|
||||
` : this.isAgo ? html`
|
||||
${isFromHub ? html`<span>${fromHubOk}</span>` : html`<span>${fromHubNo}</span>`}
|
||||
<div style="display: flex; align-items: center;">
|
||||
<div style="margin-top: 4px;">
|
||||
${isFromHub ? html`${fromHubOk}` : html`${fromHubNo}`}
|
||||
</div>
|
||||
<div id="timeformat">
|
||||
<span>
|
||||
<message-time timestamp=${this.messageObj.timestamp}></message-time>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
` : this.isIso ? html`
|
||||
${isFromHub ? html`<span>${fromHubOk}</span>` : html`<span>${fromHubNo}</span>`}
|
||||
<div style="display: flex; align-items: center;">
|
||||
<div style="margin-top: 4px;">
|
||||
${isFromHub ? html`${fromHubOk}` : html`${fromHubNo}`}
|
||||
</div>
|
||||
<div id="timeformat">
|
||||
<span>
|
||||
${new Date(this.messageObj.timestamp).toLocaleString()}
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
` : this.isBoth ? html`
|
||||
${isFromHub ? html`<span>${fromHubOk}</span>` : html`<span>${fromHubNo}</span>`}
|
||||
<div style="display: flex; align-items: center;">
|
||||
<div style="margin-top: 4px;">
|
||||
${isFromHub ? html`${fromHubOk}` : html`${fromHubNo}`}
|
||||
</div>
|
||||
<div id="timeformat">
|
||||
<span>
|
||||
${new Date(this.messageObj.timestamp).toLocaleString()}
|
||||
( <message-time timestamp=${this.messageObj.timestamp}></message-time> )
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
` : ''
|
||||
}
|
||||
</div>
|
||||
|
Loading…
x
Reference in New Issue
Block a user