Remove unnecesary profile fetch assertion

This commit is contained in:
Jamie Kyle 2024-10-24 15:01:32 -07:00 committed by GitHub
parent 8601baa7f5
commit 6888bb9cba
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -506,10 +506,6 @@ async function doGetProfile(
if (request.accessKey != null || request.groupSendToken != null) {
profile = await messaging.server.getProfileUnauth(serviceId, request);
} else {
strictAssert(
!isMe(c.attributes),
`${logId}: Should never fetch own profile on auth connection`
);
profile = await messaging.server.getProfile(serviceId, request);
}
} catch (error) {