From 922668e2a3fba40b3b0447faf53857add92a39cb Mon Sep 17 00:00:00 2001 From: ycc Date: Sat, 30 Dec 2023 19:08:44 +0100 Subject: [PATCH] Invitation struct initt fix --- server/router.go | 1 + 1 file changed, 1 insertion(+) diff --git a/server/router.go b/server/router.go index 68c36bd..b98c92b 100644 --- a/server/router.go +++ b/server/router.go @@ -124,6 +124,7 @@ func (r *RedisRouter) Route(msg *meowlib.ToServerMessage) (*meowlib.FromServerMe switch msg.Invitation.Step { case 1: // create invitation url, expiry := r.CreateInvitation(msg.Invitation.Payload, int(msg.Invitation.Timeout), msg.Invitation.Password, r.InvitationTimeout, int(msg.Invitation.ShortcodeLen)) + from_server.Invitation = &meowlib.Invitation{} from_server.Invitation.Shortcode = url from_server.Invitation.Expiry = expiry.UTC().Unix() case 2: // get invitation