Skip to content

Commit

Permalink
Fix messages being imported without sender's username (#24674)
Browse files Browse the repository at this point in the history
  • Loading branch information
matheusbsilva137 authored Mar 2, 2022
1 parent 6f1f247 commit 8604b2a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/importer/server/classes/ImportDataConverter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ export class ImportDataConverter {
}

if (userData.importIds.length) {
this.addUserToCache(userData.importIds[0], existingUser._id, existingUser.username);
this.addUserToCache(userData.importIds[0], existingUser._id, existingUser.username || userData.username);
}
}

Expand Down

0 comments on commit 8604b2a

Please sign in to comment.