diff --git a/features/chat/entity.go b/features/chat/entity.go index de2beee..bb85ecc 100644 --- a/features/chat/entity.go +++ b/features/chat/entity.go @@ -30,5 +30,4 @@ type ChatServiceInterface interface { CreateChat(receiverID int, senderID int, input Core) (Core, error) GetMessage(roomId string) ([]Core, error) GetRoom(userIdlogin int) ([]Core, error) -} - +} \ No newline at end of file diff --git a/utils/websocket/hub.go b/utils/websocket/hub.go index 3cb1e4f..bfb811c 100644 --- a/utils/websocket/hub.go +++ b/utils/websocket/hub.go @@ -40,7 +40,6 @@ func (h *Hub) Run() { if _, ok := h.Rooms[cl.RoomID].Clients[cl.SenderID]; ok { if len(h.Rooms[cl.RoomID].Clients) != 0 { h.Broadcast <- &data.Chat{ - Message: "", RoomID: cl.RoomID, } }