mirror of
https://github.com/m1k1o/neko.git
synced 2025-05-25 15:07:25 +02:00
Go generics and changes in v1.18 (#5)
* ArrayIn to use generics. * interface{} -> any.
This commit is contained in:
parent
c725e96c90
commit
babddacbf3
26 changed files with 100 additions and 110 deletions
|
@ -26,7 +26,7 @@ func (manager *WebSocketManagerCtx) fileChooserDialogEvents() {
|
|||
event.FILE_CHOOSER_DIALOG_OPENED,
|
||||
message.SessionID{
|
||||
ID: host.ID(),
|
||||
}, nil)
|
||||
})
|
||||
})
|
||||
|
||||
// when dialog closes, everyone should be notified.
|
||||
|
@ -37,7 +37,7 @@ func (manager *WebSocketManagerCtx) fileChooserDialogEvents() {
|
|||
|
||||
go manager.sessions.Broadcast(
|
||||
event.FILE_CHOOSER_DIALOG_CLOSED,
|
||||
message.SessionID{}, nil)
|
||||
message.SessionID{})
|
||||
})
|
||||
|
||||
// when new user joins, and someone holds dialog, he shouldd be notified about it.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue