Skip to content

Commit

Permalink
remove redundant portal info
Browse files Browse the repository at this point in the history
  • Loading branch information
JJTech0130 committed Jul 24, 2024
1 parent b4c8506 commit c12cc87
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions pkg/connector/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -594,20 +594,8 @@ func (m *MetaClient) ResolveIdentifier(ctx context.Context, identifier string, c

portalKey := networkid.PortalKey{ID: ids.MakePortalID(id)}

portal, err := m.Main.Bridge.GetPortalByID(ctx, portalKey)
if err != nil {
log.Err(err).Any("portal_key", portalKey).Msg("Failed to get portal")
}

chatInfo, err := m.GetChatInfo(ctx, portal)
if err != nil {
log.Err(err).Any("portal_key", portalKey).Msg("Failed to get chat info")
}

chat = &bridgev2.CreateChatResponse{
Portal: portal,
PortalID: portalKey,
PortalInfo: chatInfo,
PortalID: portalKey,
}
}
return &bridgev2.ResolveIdentifierResponse{
Expand Down

0 comments on commit c12cc87

Please sign in to comment.