ssb: Fix private conversation keyboard alt+navigation. #125

This commit is contained in:
2025-08-13 19:24:25 -04:00
parent f902d0374c
commit 7cec0f7d61
3 changed files with 26 additions and 22 deletions

View File

@@ -1,5 +1,5 @@
{ {
"type": "tildefriends-app", "type": "tildefriends-app",
"emoji": "🦀", "emoji": "🦀",
"previous": "&lFyDLIdToivp5zCqHBCRRBs3ESnWoKRi9JQJEkuclQ4=.sha256" "previous": "&5T+xPy3LhgmU2ape4dlJLRhYhmE5J1SQkI+wFm6Fss4=.sha256"
} }

View File

@@ -141,7 +141,9 @@ class TfElement extends LitElement {
'', '',
'@', '@',
'👍', '👍',
'🔐', ...Object.keys(this.grouped_private_messages)
.sort()
.map((x) => '🔐' + JSON.parse(x).join(',')),
...this.channels.map((x) => '#' + x), ...this.channels.map((x) => '#' + x),
]; ];
let index = channel_names.indexOf(this.hash.substring(1)); let index = channel_names.indexOf(this.hash.substring(1));

View File

@@ -258,7 +258,9 @@ class TfTabNewsElement extends LitElement {
style=${this.hash == '#👍' ? 'font-weight: bold' : undefined} style=${this.hash == '#👍' ? 'font-weight: bold' : undefined}
>${this.unread_status('👍')}👍votes</a >${this.unread_status('👍')}👍votes</a
> >
${Object.keys(this?.grouped_private_messages ?? [])?.map( ${Object.keys(this?.grouped_private_messages ?? [])
?.sort()
?.map(
(key) => html` (key) => html`
<a <a
href=${'#🔐' + JSON.parse(key).join(',')} href=${'#🔐' + JSON.parse(key).join(',')}