refactor progress

This commit is contained in:
Craig 2020-01-22 17:16:40 +00:00
parent d497806443
commit 8ba1b68a21
55 changed files with 4899 additions and 761 deletions

View file

@ -7,6 +7,10 @@ import (
)
func (h *MessageHandler) chat(id string, session *session.Session, payload *message.ChatRecieve) error {
if session.Muted {
return nil
}
if err := h.sessions.Brodcast(
message.ChatSend{
Event: event.CHAT_MESSAGE,
@ -20,6 +24,10 @@ func (h *MessageHandler) chat(id string, session *session.Session, payload *mess
}
func (h *MessageHandler) chatEmoji(id string, session *session.Session, payload *message.EmojiRecieve) error {
if session.Muted {
return nil
}
if err := h.sessions.Brodcast(
message.EmojiSend{
Event: event.CHAT_MESSAGE,