mirror of
https://github.com/m1k1o/neko.git
synced 2025-06-01 10:22:35 +02:00
Refactor: session remove duplicate ID in endpoints.
This commit is contained in:
parent
e150203b54
commit
5c92b75cf7
7 changed files with 53 additions and 80 deletions
|
@ -37,7 +37,7 @@ func (session *Session) Muted() bool {
|
|||
}
|
||||
|
||||
func (session *Session) IsHost() bool {
|
||||
return session.manager.host == session.id
|
||||
return session.manager.host != nil && session.manager.host.ID() == session.ID()
|
||||
}
|
||||
|
||||
func (session *Session) Connected() bool {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue