mirror of
https://github.com/irislib/iris-messenger.git
synced 2024-10-18 14:13:21 +00:00
dont show nickname for self & their nickname for group
This commit is contained in:
parent
a50dfdac12
commit
c6b2e014bf
@ -330,7 +330,7 @@
|
||||
<p>
|
||||
Nickname: <input id="profile-nickname-their">
|
||||
</p>
|
||||
<p>
|
||||
<p id="profile-nickname-my-container">
|
||||
Their nickname for you: <span id="profile-nickname-my"></span>
|
||||
</p>
|
||||
</div>
|
||||
|
@ -799,6 +799,8 @@ function showProfile(pub) {
|
||||
var name = event.target.value;
|
||||
chats[pub].put('name', name);
|
||||
});
|
||||
$('.profile-nicknames').toggle(pub !== key.pub);
|
||||
$('#profile-nickname-my-container').toggle(!chats[pub].uuid);
|
||||
$('#profile-nickname-their').not(':focus').val(chats[pub] && chats[pub].theirNickname);
|
||||
$('#profile-nickname-my').text(chats[pub] && chats[pub].myNickname && chats[pub].myNickname.length ? chats[pub].myNickname : '');
|
||||
$('#profile-nickname-their').off().on('input', event => {
|
||||
|
Loading…
Reference in New Issue
Block a user