From c02c8cb61002091d671f77833dfee8b428aaa0e5 Mon Sep 17 00:00:00 2001 From: LittleSheep Date: Mon, 16 Dec 2024 19:55:39 +0800 Subject: [PATCH] :bug: Fix create call panic --- pkg/internal/services/calls.go | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/pkg/internal/services/calls.go b/pkg/internal/services/calls.go index 70eb97b..ccbe79c 100644 --- a/pkg/internal/services/calls.go +++ b/pkg/internal/services/calls.go @@ -4,13 +4,14 @@ import ( "context" "errors" "fmt" + "time" + "git.solsynth.dev/hypernet/messaging/pkg/internal/gap" "git.solsynth.dev/hypernet/nexus/pkg/nex" "git.solsynth.dev/hypernet/nexus/pkg/nex/cruda" "git.solsynth.dev/hypernet/passport/pkg/authkit" authm "git.solsynth.dev/hypernet/passport/pkg/authkit/models" "git.solsynth.dev/hypernet/pusher/pkg/pushkit" - "time" "git.solsynth.dev/hypernet/messaging/pkg/internal/database" "git.solsynth.dev/hypernet/messaging/pkg/internal/models" @@ -123,13 +124,6 @@ func NewCall(channel models.Channel, founder models.ChannelMember) (models.Call, } channel, _ = GetChannel(channel.ID) - if channel.RealmID == nil { - realm, err := authkit.GetRealm(gap.Nx, *channel.RealmID) - if err == nil { - channel.Realm = &realm - } - } - if channel.RealmID != nil { realm, err := authkit.GetRealm(gap.Nx, *channel.RealmID) if err == nil {