From c4a7ba98b8f9147fe7da0f50a9f61c76eef86493 Mon Sep 17 00:00:00 2001 From: Upkeep Date: Tue, 14 Feb 2023 00:00:47 +0100 Subject: [PATCH] fix: implement whispering --- src/api.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/api.ts b/src/api.ts index 17b9d05..9a29ebb 100644 --- a/src/api.ts +++ b/src/api.ts @@ -295,9 +295,8 @@ export class FedwaveChat { } async sendWhisper(recipient: string, msg: string): Promise { - await $http.post(this._apiPrefix + this._whisperEndpoint, { - chatToken: this.userProfile.jwt, - receiver: recipient, + this._socket.emit("whisper", { + to: recipient, message: msg, }); }