Pārlūkot izejas kodu

Show nickname for verified contacts and in contact details (#296)

Fixes #294 and #295.
IndianaDschones 8 gadi atpakaļ
vecāks
revīzija
9ad316ec8b

+ 2 - 1
public/i18n/de.json

@@ -147,7 +147,8 @@
         "PRIVATE_CHAT_DESCRIPTION": "Private Unterhaltungen werden in Threema Web nicht unterstützt.",
         "MESSAGE_TOO_LONG_SPLIT_SUBJECT": "Nachricht aufteilen.",
         "MESSAGE_TOO_LONG_SPLIT_BODY": "Es werden maximal {max} Zeichen pro Nachricht unterstützt, wollen Sie die Nachricht in {count} separate Nachrichten aufteilen?",
-        "BALLOT_MESSAGES_NOT_SUPPORTED": "Umfragen werden in Threema Web derzeit nicht untersützt."
+        "BALLOT_MESSAGES_NOT_SUPPORTED": "Umfragen werden in Threema Web derzeit nicht untersützt.",
+        "NICKNAME": "Nickname"
     },
     "messageTypes": {
         "AUDIO_MESSAGE": "Sprachnachricht",

+ 2 - 1
public/i18n/en.json

@@ -148,7 +148,8 @@
         "PRIVATE_CHAT_DESCRIPTION": "Private chat are not supported in Threema Web.",
         "MESSAGE_TOO_LONG_SPLIT_SUBJECT": "Split Message",
         "MESSAGE_TOO_LONG_SPLIT_BODY": "No more than {max} characters can be sent per message, do you want to split it into {count} separate messages?",
-        "BALLOT_MESSAGES_NOT_SUPPORTED": "Ballot messages are not yet supported in Threema Web."
+        "BALLOT_MESSAGES_NOT_SUPPORTED": "Ballot messages are not yet supported in Threema Web.",
+        "NICKNAME": "Nickname"
     },
     "messageTypes": {
         "AUDIO_MESSAGE": "Audio Message",

+ 1 - 1
src/partials/messenger.navigation.html

@@ -120,7 +120,7 @@
 
             <section class="right">
                 <div class="nickname">
-                    <span ng-show="contact.publicNickname && contact.verificationLevel < 2 && contact.publicNickname != contact.identity">
+                    <span ng-show="contact.publicNickname && contact.publicNickname != contact.identity">
                         ~{{ contact.publicNickname }}
                     </span>
                 </div>

+ 3 - 0
src/partials/messenger.receiver/contact.html

@@ -17,6 +17,9 @@
 				<dt><span translate>messenger.KEY_FINGERPRINT</span></dt>
 				<dd>{{ ctrl.fingerPrint }}</dd>
 
+				<dt><span translate>messenger.NICKNAME</span></dt>
+				<dd>{{ ctrl.receiver.publicNickname || "-" }}</dd>
+
 				<dt><span translate>messenger.FIRST_NAME</span></dt>
 				<dd>{{ ctrl.receiver.firstName || "-" }}</dd>