diff --git a/Server/ws/messages.go b/Server/ws/messages.go index 8a9c8e74..6ffd960a 100644 --- a/Server/ws/messages.go +++ b/Server/ws/messages.go @@ -151,11 +151,6 @@ type dmChannelOpenPayload struct { Recipient dmUserPayload `json:"recipient"` } -// dmChannelClosePayload is sent when a user closes a DM. -type dmChannelClosePayload struct { - ChannelID int64 `json:"channel_id"` -} - // dmUserPayload is the public-facing shape for a DM participant in WS events. type dmUserPayload struct { ID int64 `json:"id"` @@ -453,14 +448,6 @@ func buildDMChannelOpen(channelID int64, recipient *db.User) []byte { }) } -// buildDMChannelClose constructs a dm_channel_close event sent to a user. -func buildDMChannelClose(channelID int64) []byte { - return buildJSON(wsMsg{ - Type: "dm_channel_close", - Payload: dmChannelClosePayload{ChannelID: channelID}, - }) -} - // buildServerRestartMsg constructs a server_restart broadcast. func buildServerRestartMsg(reason string, delaySeconds int) []byte { return buildJSON(wsMsg{