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", "type": "tildefriends-app",
"emoji": "🦀", "emoji": "🦀",
"previous": "&R6lVyXLYem8Qkuhok/USflvzqw/ZgGic1aUsE23yzR0=.sha256" "previous": "&08aLuFwq4TPRG2yO11MDX+2tdKcv1rgc2zLaBCB9fiE=.sha256"
} }

View File

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