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