From 0f270a0390d4e25ecca8625db97b286194b30939 Mon Sep 17 00:00:00 2001 From: Noah Petherbridge Date: Sat, 24 Jun 2023 13:47:20 -0700 Subject: [PATCH] Bugfix with MessageIDs in DM threads --- pkg/websocket.go | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/pkg/websocket.go b/pkg/websocket.go index 67b210c..0f070ed 100644 --- a/pkg/websocket.go +++ b/pkg/websocket.go @@ -337,10 +337,11 @@ func (s *Server) SendTo(username string, msg Message) error { if sub.Username == username { found = true sub.SendJSON(Message{ - Action: msg.Action, - Channel: msg.Channel, - Username: msg.Username, - Message: msg.Message, + Action: msg.Action, + Channel: msg.Channel, + Username: msg.Username, + Message: msg.Message, + MessageID: msg.MessageID, }) } }