Skip to content

Commit

Permalink
Remove remnant references of Accounts_AvatarExternalProviderUrl on …
Browse files Browse the repository at this point in the history
…client
  • Loading branch information
tassoevan committed Sep 16, 2024
1 parent fad7f97 commit b6bfbec
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 10 deletions.
7 changes: 7 additions & 0 deletions .changeset/strong-grapes-brake.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
'@rocket.chat/meteor': patch
---

Fixed remaining direct references to external user avatar URLs

It mainly corrects the behavior of E2E encryption messages and desktop notifications.
5 changes: 0 additions & 5 deletions apps/meteor/app/utils/client/getUserAvatarURL.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
import { settings } from '../../settings/client';
import { getAvatarURL } from './getAvatarURL';

export const getUserAvatarURL = function (username: string, cache = ''): string | undefined {
const externalSource = (settings.get<string>('Accounts_AvatarExternalProviderUrl') || '').trim().replace(/\/$/, '');
if (externalSource !== '') {
return externalSource.replace('{username}', username);
}
if (username == null) {
return;
}
Expand Down
5 changes: 0 additions & 5 deletions apps/meteor/app/utils/server/getUserAvatarURL.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
import { settings } from '../../settings/server';
import { getAvatarURL } from './getAvatarURL';

export const getUserAvatarURL = function (username: string, cache = ''): string | undefined {
const externalSource = (settings.get<string>('Accounts_AvatarExternalProviderUrl') || '').trim().replace(/\/$/, '');
if (externalSource !== '') {
return externalSource.replace('{username}', username);
}
if (username == null) {
return;
}
Expand Down

0 comments on commit b6bfbec

Please sign in to comment.