mirror of
https://github.com/m1k1o/neko.git
synced 2025-07-24 03:59:08 +02:00
refactor progress
This commit is contained in:
parent
d497806443
commit
8ba1b68a21
55 changed files with 4899 additions and 761 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue