Skip to content

Commit

Permalink
[FIX] Open a new DM throwing error 404 (#22100)
Browse files Browse the repository at this point in the history
  • Loading branch information
tassoevan authored May 21, 2021
1 parent 9a07016 commit 64931a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/ui-utils/client/lib/openRoom.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ export const openRoom = async function(type, name, render = true) {
if (type === 'd') {
const result = await call('createDirectMessage', ...name.split(', '));
if (result) {
return FlowRouter.go('direct', { rid: result._id }, FlowRouter.current().queryParams);
return FlowRouter.go('direct', { rid: result.rid }, FlowRouter.current().queryParams);
}
}
Session.set('roomNotFound', { type, name, error });
Expand Down

0 comments on commit 64931a5

Please sign in to comment.