(feat): add message states
Some checks failed
/ build-web (push) Successful in 1m20s
/ build-desktop (linux) (push) Successful in 7m6s
/ build-mobile (push) Failing after 13m56s
/ release (push) Has been skipped

(qol): prep for mtp migration
This commit is contained in:
Alois 2026-06-26 10:54:25 +02:00
commit c484a3c303
6 changed files with 110 additions and 33 deletions

View file

@ -52,20 +52,20 @@ export default function Provider(props: { children: React.ReactNode }) {
);
// Update message state
if (
(await load("settings.read_confirmations")) &&
userId === sender_id
) {
void send(
"message_state",
{
message_state: "read",
},
{
id: ttpMessage.id,
},
);
} else {
if (userId === sender_id) {
addLiveMessage({
...message,
content: decryptedContent,
sent_by_self: false,
});
return;
}
// todo: add notification symbol to conversation cards (incl. message start)
moveUserIdToTop(sender_id);
if (await load("settings.receive_confirmations")) {
void send(
"message_state",
{
@ -77,20 +77,6 @@ export default function Provider(props: { children: React.ReactNode }) {
);
}
if (userId === sender_id) {
addLiveMessage({
...message,
content: decryptedContent,
sent_by_self: false,
});
return;
}
// todo: add notification symbol to conversation cards (incl. message start)
moveUserIdToTop(sender_id);
if (isTauri()) {
console.log("weewoo");
} else {