Skip to content

Commit

Permalink
[FIX] "User not found" for direct messages (#16047)
Browse files Browse the repository at this point in the history
  • Loading branch information
gabriellsh authored and ggazzo committed Jan 6, 2020
1 parent 7701653 commit 05fd3be
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 7 deletions.
14 changes: 7 additions & 7 deletions app/ui/client/views/404/roomNotFound.html
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<template name="roomNotFound">
<section class="page-container page-list content-background-color">
{{> header sectionName="Room_not_found"}}
<div class="content room-not-found error-color">
<i class="icon-attention"></i>
<div>
{{#with data}}
{{#with data}}
{{> header sectionName=headerMessage}}
<div class="content room-not-found error-color">
<i class="icon-attention"></i>
<div>
{{#if $eq type 'c'}}
{{{_ 'No_channel_with_name_%s_was_found' name}}}
{{/if}}
Expand All @@ -22,8 +22,8 @@
{{/if}}
{{/if}}
{{/if}}
{{/with}}
</div>
</div>
</div>
{{/with}}
</section>
</template>
5 changes: 5 additions & 0 deletions app/ui/client/views/404/roomNotFound.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,9 @@ Template.roomNotFound.helpers({
customErrorMessage() {
return this.error.reason;
},
headerMessage() {
const { type } = Template.currentData();

return type === 'd' ? 'User_not_found' : 'Room_not_found';
},
});

0 comments on commit 05fd3be

Please sign in to comment.