Skip to content

Commit

Permalink
Merge pull request #35 from twouters/fix-sporadic-m_unknown
Browse files Browse the repository at this point in the history
Use ghostIntent to get matrix profile
  • Loading branch information
thomas-profitt committed Apr 9, 2018
2 parents cf7976e + 6aa5f88 commit 3b5e89d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/base.js
Expand Up @@ -845,7 +845,7 @@ class Base {
const { info } = debug(this.setGhostAvatar.name);
const client = ghostIntent.getClient();

return client.getProfileInfo(client.credentials.userId, 'avatar_url').then(({avatar_url})=>{
return ghostIntent.getProfileInfo(client.credentials.userId, 'avatar_url').then(({avatar_url})=>{
if (avatar_url) {
info('refusing to overwrite existing avatar');
return null;
Expand Down

0 comments on commit 3b5e89d

Please sign in to comment.