Guard `isValidImageUrl` against nullish `avatar_url` inputs (#5172) * Initial plan * fix: guard isValidImageUrl against nullish input Co-authored-by: Cohee1207 <18619528+Cohee1207@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: Cohee1207 <18619528+Cohee1207@users.noreply.github.com>

3efe809d274f71c8b34e58b97255ea1d6a319f57

Copilot <198982749+Copilot@users.noreply.github.com>

Signed
1 files changed, +1 -1Ignore whitespace
public/scripts/group-chats.js+1 -1
@@ -857,7 +857,7 @@ function updateGroupAvatar(group) {
857857 */
858858function isValidImageUrl(url) {
859859 // check if empty dict
860860 if (!url || Object.keys(url).length === 0) {
861861 return false;
862862 }
863863 return isDataURL(url) || (url && (url.startsWith('user') || url.startsWith('/user')));