(feat): big call and chatting stuff #23

Merged
alois merged 33 commits from dev into main 2026-08-01 03:05:40 +03:00
Showing only changes of commit 53728b7436 - Show all commits

(fix): add conversation
Some checks failed
/ build-web (push) Failing after 1m2s
/ build-mobile (push) Failing after 1m15s
/ build-desktop (linux) (push) Failing after 1m15s
/ release (push) Has been skipped

Alois 2026-07-29 11:46:39 +02:00
Signed by: alois
SSH key fingerprint: SHA256:GBzT2DXvAuGV9XIV5W3WrzVpjU54FThmxHXdbz95J24

View file

@ -79,7 +79,7 @@ function AddConversationButton() {
Username: result.data, Username: result.data,
}) })
.then((data) => { .then((data) => {
if (data.data.UserId === 0) { if (data.type === "ErrorNotFound" || data.data.UserId === 0) {
throw new Error(); throw new Error();
} }
@ -101,7 +101,7 @@ function AddConversationButton() {
const timeout = setTimeout(() => setLoading(true), 500); const timeout = setTimeout(() => setLoading(true), 500);
send("AddConversation", { send("AddConversation", {
ChatPartnerName: result.data, ChatPartnerId: user.data.UserId,
}) })
.then(() => { .then(() => {
insertContact(user.data.UserId); insertContact(user.data.UserId);