This commit is contained in:
@ -367,7 +367,8 @@ class TfElement extends LitElement {
|
|||||||
'"' + this.whoami.replace('"', '""') + '"',
|
'"' + this.whoami.replace('"', '""') + '"',
|
||||||
this.whoami,
|
this.whoami,
|
||||||
];
|
];
|
||||||
let channels = (await Promise.all([
|
let channels = (
|
||||||
|
await Promise.all([
|
||||||
this.query_timed(
|
this.query_timed(
|
||||||
`
|
`
|
||||||
SELECT channels.value AS channel, MAX(messages.rowid) AS rowid FROM messages
|
SELECT channels.value AS channel, MAX(messages.rowid) AS rowid FROM messages
|
||||||
@ -425,7 +426,8 @@ class TfElement extends LitElement {
|
|||||||
`,
|
`,
|
||||||
k_args
|
k_args
|
||||||
),
|
),
|
||||||
])).flat();
|
])
|
||||||
|
).flat();
|
||||||
let latest = {};
|
let latest = {};
|
||||||
for (let row of channels) {
|
for (let row of channels) {
|
||||||
if (!latest[row.channel]) {
|
if (!latest[row.channel]) {
|
||||||
|
Reference in New Issue
Block a user