Skip to content

Commit

Permalink
Merge pull request #139 from Kos-Kita/editresponsechat
Browse files Browse the repository at this point in the history
update response chat
  • Loading branch information
lendral3n authored Feb 17, 2024
2 parents 4ae3322 + 3c33d97 commit a08466c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
3 changes: 1 addition & 2 deletions features/chat/entity.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

}
1 change: 0 additions & 1 deletion utils/websocket/hub.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}
}
Expand Down

0 comments on commit a08466c

Please sign in to comment.