some video retated fixes
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
ycc
2024-05-27 18:38:38 +02:00
parent 17c991f442
commit c284b15788
6 changed files with 91 additions and 29 deletions

View File

@ -168,7 +168,7 @@ func (ints *Server) BuildMessageRequestMessage(lookupKeys []string) ([]byte, err
}
// BuildVideoRoomRequestMessage creates a video room request to server and returns it as protobuf serialized byte array
func (ints *Server) BuildVideoRoomRequestMessage(users []string, expiry uint64) ([]byte, error) {
func (ints *Server) BuildVideoRoomRequestMessage(users []string, expiry uint64) (*meowlib.ToServerMessage, error) {
var msg meowlib.ToServerMessage
msg.Uuid = uuid.New().String()
msg.Type = "1"
@ -181,11 +181,7 @@ func (ints *Server) BuildVideoRoomRequestMessage(users []string, expiry uint64)
}
}
msg.VideoData.Credentials = videocreds
out, err := proto.Marshal(&msg)
if err != nil {
return nil, err
}
return out, nil
return &msg, nil
}
// BuildToServerMessageInvitation creates an invitation message to server and returns it as a meowlib.ToServerMessage