feat: change grouped messages being called compact to grouped
All checks were successful
ci/woodpecker/push/build-and-publish Pipeline was successful

This commit is contained in:
SauceyRed 2025-05-31 14:50:44 +02:00
parent 3c65a700ff
commit 4da2ede58a
Signed by: sauceyred
GPG key ID: 2BF92EB6D8A5CCA7
2 changed files with 5 additions and 4 deletions

View file

@ -27,12 +27,13 @@ import scrollToBottom from '~/utils/scrollToBottom';
const props = defineProps<{ channelUrl: string, amount?: number, offset?: number }>();
const messageTimestamps = ref<Record<string, number>>({});
const messagesType = ref<Record<string, "normal" | "compact">>({});
const messagesType = ref<Record<string, "normal" | "grouped">>({});
const messagesRes: MessageResponse[] | undefined = await fetchWithApi(
`${props.channelUrl}/messages`,
{ query: { "amount": props.amount ?? 100, "offset": props.offset ?? 0 } }
);
if (messagesRes) {
messagesRes.reverse();
console.log("messages res:", messagesRes.map(msg => msg.message));
@ -77,7 +78,7 @@ if (messagesRes) {
continue;
}
console.log("RETURNING " + lessThanMax.toString().toUpperCase());
messagesType.value[message.uuid] = "compact";
messagesType.value[message.uuid] = "grouped";
}
}