mirror of
https://github.com/m1k1o/neko.git
synced 2025-05-12 08:37:30 +02:00
naming convention -> screen size.
This commit is contained in:
parent
227b6b24c2
commit
99068b893b
3 changed files with 6 additions and 6 deletions
|
@ -6,7 +6,7 @@ import (
|
|||
"demodesk/neko/internal/types/message"
|
||||
)
|
||||
|
||||
func (h *MessageHandlerCtx) screenSet(session types.Session, payload *message.ScreenResolution) error {
|
||||
func (h *MessageHandlerCtx) screenSizeChange(session types.Session, payload *message.ScreenResolution) error {
|
||||
if !session.Admin() {
|
||||
h.logger.Debug().Msg("user not admin")
|
||||
return nil
|
||||
|
@ -27,7 +27,7 @@ func (h *MessageHandlerCtx) screenSet(session types.Session, payload *message.Sc
|
|||
}, nil)
|
||||
}
|
||||
|
||||
func (h *MessageHandlerCtx) screenResolution(session types.Session) error {
|
||||
func (h *MessageHandlerCtx) screenSize(session types.Session) error {
|
||||
size := h.desktop.GetScreenSize()
|
||||
if size == nil {
|
||||
h.logger.Debug().Msg("could not get screen size")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue