ssb: Condense follows/blocks more, and support replies to them. #122

This commit is contained in:
2025-05-31 15:17:07 -04:00
parent f7b3711d4f
commit 4d3e42812d
3 changed files with 159 additions and 42 deletions

View File

@ -166,7 +166,10 @@ class TfNewsElement extends LitElement {
if (message?.content?.type === 'contact') {
group.push(message);
} else {
if (group.length > 0) {
if (group.length == 1) {
result.push(group[0]);
group = [];
} else if (group.length > 1) {
result.push({
rowid: Math.max(...group.map((x) => x.rowid)),
type: 'contact_group',
@ -177,7 +180,10 @@ class TfNewsElement extends LitElement {
result.push(message);
}
}
if (group.length > 0) {
if (group.length == 1) {
result.push(group[0]);
group = [];
} else if (group.length > 1) {
result.push({
rowid: Math.max(...group.map((x) => x.rowid)),
type: 'contact_group',