ssb: Consolidated contact message groups a bit too much.

This commit is contained in:
Cory McWilliams 2025-06-02 12:14:06 -04:00
parent 8a9502d1f2
commit e2a231fb4a
2 changed files with 13 additions and 9 deletions

View File

@ -1,5 +1,5 @@
{
"type": "tildefriends-app",
"emoji": "🦀",
"previous": "&R6lVyXLYem8Qkuhok/USflvzqw/ZgGic1aUsE23yzR0=.sha256"
"previous": "&08aLuFwq4TPRG2yO11MDX+2tdKcv1rgc2zLaBCB9fiE=.sha256"
}

View File

@ -94,7 +94,9 @@ class TfMessageElement extends LitElement {
return '👎';
} else if (expression === 'heart') {
return '❤️';
} else if ((expression ?? '').split('').every((x) => x.charCodeAt(0) < 256)) {
} else if (
(expression ?? '').split('').every((x) => x.charCodeAt(0) < 256)
) {
return '👍';
} else {
return expression;
@ -656,13 +658,15 @@ class TfMessageElement extends LitElement {
<div class="w3-padding">
${this.content_group_by_author().map(
(x) => html`
<tf-user id=${x.author} .users=${this.users}></tf-user>
${x.action}
${x.users.map(
(y) => html`
<tf-user id=${y} .users=${this.users}></tf-user>
`
)}
<div>
<tf-user id=${x.author} .users=${this.users}></tf-user>
${x.action}
${x.users.map(
(y) => html`
<tf-user id=${y} .users=${this.users}></tf-user>
`
)}
</div>
`
)}
</div>