From 96331761b89b4a2589748ff84f5220c6126e200f Mon Sep 17 00:00:00 2001 From: Sumner Evans Date: Mon, 7 Oct 2024 16:32:48 -0600 Subject: [PATCH] snc: fix resolving identifier Signed-off-by: Sumner Evans --- pkg/connector/startnewchat.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/pkg/connector/startnewchat.go b/pkg/connector/startnewchat.go index ce39f13e..4c29e3aa 100644 --- a/pkg/connector/startnewchat.go +++ b/pkg/connector/startnewchat.go @@ -89,8 +89,6 @@ func (t *TelegramClient) ResolveIdentifier(ctx context.Context, identifier strin if entityType == ids.PeerTypeUser && (err == nil || userID != 0) { // We know this username. return t.getResolveIdentifierResponseForUserID(ctx, userID) - } else if entityType != ids.PeerTypeUser { - return nil, fmt.Errorf("unexpected peer type: %s", entityType) } else { // We don't know this username, try to resolve the username from // Telegram.