mirror of
https://github.com/m1k1o/neko.git
synced 2024-07-24 14:40:50 +12:00
14 lines
320 B
Go
14 lines
320 B
Go
package websocket
|
|
|
|
import (
|
|
"n.eko.moe/neko/internal/message"
|
|
"n.eko.moe/neko/internal/session"
|
|
)
|
|
|
|
func (h *MessageHandler) identityDetails(id string, session *session.Session, payload *message.IdentityDetails) error {
|
|
if _, err := h.sessions.SetName(id, payload.Username); err != nil {
|
|
return err
|
|
}
|
|
return nil
|
|
}
|