Skip to content

Commit

Permalink
Fixed issue that prevented download from user data when a room no lon…
Browse files Browse the repository at this point in the history
…ger existed (#12829)
  • Loading branch information
Hudell authored and rodrigok committed Dec 12, 2018
1 parent 5fb0b43 commit 6b8cbf3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ const loadUserSubscriptions = function(exportOperation) {
cursor.forEach((subscription) => {
const roomId = subscription.rid;
const roomData = RocketChat.models.Rooms.findOneById(roomId);
let roomName = roomData.name ? roomData.name : roomId;
let roomName = (roomData && roomData.name) ? roomData.name : roomId;
let userId = null;

if (subscription.t === 'd') {
Expand Down

0 comments on commit 6b8cbf3

Please sign in to comment.