Skip to content
Snippets Groups Projects
Commit 74265aec authored by Rodrigo Nascimento's avatar Rodrigo Nascimento Committed by Aaron Ogle
Browse files

Fix mobile avatars

parent 2ad24e16
No related branches found
No related tags found
No related merge requests found
......@@ -18,6 +18,8 @@ Meteor.startup(function() {
let username = decodeURIComponent(match[1]);
let file;
username = username.replace(/\.jpg$/, '');
if (username[0] !== '@') {
if (Meteor.settings && Meteor.settings.public && Meteor.settings.public.sandstorm) {
const user = RocketChat.models.Users.findOneByUsername(username);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment