[FIX] "User not found" for direct messages (#16047)

pull/16139/head
gabriellsh 5 years ago committed by Guilherme Gazzo
parent 77016537c5
commit 05fd3bebdd
  1. 14
      app/ui/client/views/404/roomNotFound.html
  2. 5
      app/ui/client/views/404/roomNotFound.js

@ -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}}
@ -22,8 +22,8 @@
{{/if}}
{{/if}}
{{/if}}
{{/with}}
</div>
</div>
</div>
{{/with}}
</section>
</template>

@ -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';
},
});

Loading…
Cancel
Save