Fix: code review

Co-authored-by: Iuri Matias <iuri.matias@gmail.com>
This commit is contained in:
RichΛrd 2020-06-25 08:30:50 -04:00 committed by Iuri Matias
parent e8858f25ba
commit 2490a6fe4a
1 changed files with 2 additions and 3 deletions

View File

@ -7,9 +7,8 @@ proc sectionIdentifier(message: Message): string =
proc mention(self: ChatMessageList, pubKey: string): string =
if self.status.chat.contacts.hasKey(pubKey):
result = ens.userNameOrAlias(self.status.chat.contacts[pubKey])
else:
result = generateAlias(pubKey)
return ens.userNameOrAlias(self.status.chat.contacts[pubKey])
generateAlias(pubKey)
# See render-inline in status-react/src/status_im/ui/screens/chat/message/message.cljs