Self-hosted, federated location sharing app and server that prioritizes user privacy and security
end-to-end-encryption location-sharing privacy self-hosted federated

fixed send-pings api deserialization issue (it wants a list of pings)

azom.dev 678794cf 97f59598

verified
Changed files
+2 -1
app
src
utils
+2 -1
app/src/utils/api.ts
··· 47 47 } 48 48 49 49 export async function sendPings(friend_id: string, ping: string): Promise<void> { 50 - await post("send-pings", JSON.stringify({ receiver_id: friend_id, encrypted_ping: ping })); 50 + // later, accept a list of friend ids, but anyways this specific api won't stay in typescript for long since it needs to be run in the background 51 + await post("send-pings", JSON.stringify([{ receiver_id: friend_id, encrypted_ping: ping }])); 51 52 } 52 53 53 54 export async function getPings(friend_id: string): Promise<string[]> {