Skip to content

Commit

Permalink
fix(back): fix double message
Browse files Browse the repository at this point in the history
  • Loading branch information
agjini committed Oct 10, 2024
1 parent a2e0135 commit 2a91176
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions back/src/Liane/Liane.Web/Hubs/ChatHub.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,7 @@ public async Task PostEvent(LianeEvent lianeEvent)

public async Task SendToLiane(MessageContent lianeMessage, string lianeId)
{
var sent = await lianeService.SendMessage(lianeId, lianeMessage);
await Clients.Caller.ReceiveLianeMessage(lianeId, sent);
await lianeService.SendMessage(lianeId, lianeMessage);
}

public async Task<Api.Community.Liane> JoinLianeChat(string lianeId)
Expand Down

0 comments on commit 2a91176

Please sign in to comment.