···4747}
48484949export async function sendPings(friend_id: string, ping: string): Promise<void> {
5050- await post("send-pings", JSON.stringify({ receiver_id: friend_id, encrypted_ping: ping }));
5050+ // 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
5151+ await post("send-pings", JSON.stringify([{ receiver_id: friend_id, encrypted_ping: ping }]));
5152}
52535354export async function getPings(friend_id: string): Promise<string[]> {