Remove unnecesary profile fetch assertion
This commit is contained in:
parent
8601baa7f5
commit
6888bb9cba
1 changed files with 0 additions and 4 deletions
|
@ -506,10 +506,6 @@ async function doGetProfile(
|
||||||
if (request.accessKey != null || request.groupSendToken != null) {
|
if (request.accessKey != null || request.groupSendToken != null) {
|
||||||
profile = await messaging.server.getProfileUnauth(serviceId, request);
|
profile = await messaging.server.getProfileUnauth(serviceId, request);
|
||||||
} else {
|
} else {
|
||||||
strictAssert(
|
|
||||||
!isMe(c.attributes),
|
|
||||||
`${logId}: Should never fetch own profile on auth connection`
|
|
||||||
);
|
|
||||||
profile = await messaging.server.getProfile(serviceId, request);
|
profile = await messaging.server.getProfile(serviceId, request);
|
||||||
}
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
|
Loading…
Reference in a new issue