Explorar o código

Handle missing nickname in contact details

Danilo Bargen %!s(int64=7) %!d(string=hai) anos
pai
achega
c8aa4d6232
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      src/partials/messenger.receiver/contact.html

+ 2 - 1
src/partials/messenger.receiver/contact.html

@@ -29,7 +29,8 @@
 				<dd>{{ ctrl.fingerPrint }}</dd>
 
 				<dt><span translate>messenger.NICKNAME</span></dt>
-				<dd ng-bind-html="ctrl.receiver.publicNickname | emojify"></dd>
+				<dd ng-if="ctrl.receiver.publicNickname" ng-bind-html="ctrl.receiver.publicNickname | emojify"></dd>
+				<dd ng-if="!ctrl.receiver.publicNickname">-</dd>
 
 				<dt><span translate>messenger.FIRST_NAME</span></dt>
 				<dd>{{ ctrl.receiver.firstName || "-" }}</dd>