Improved notification text for service messages
User left the group, user returned to group Closes #448
This commit is contained in:
parent
de3dd402d2
commit
4ae3042cab
@ -1915,8 +1915,12 @@ angular.module('myApp.services', [])
|
|||||||
case 'messageActionChatEditTitle': notificationMessage = 'changed group name'; break;
|
case 'messageActionChatEditTitle': notificationMessage = 'changed group name'; break;
|
||||||
case 'messageActionChatEditPhoto': notificationMessage = 'changed group photo'; break;
|
case 'messageActionChatEditPhoto': notificationMessage = 'changed group photo'; break;
|
||||||
case 'messageActionChatDeletePhoto': notificationMessage = 'removed group photo'; break;
|
case 'messageActionChatDeletePhoto': notificationMessage = 'removed group photo'; break;
|
||||||
case 'messageActionChatAddUser': notificationMessage = 'invited user'; break;
|
case 'messageActionChatAddUser':
|
||||||
case 'messageActionChatDeleteUser': notificationMessage = 'kicked user'; break;
|
notificationMessage = message.action.user_id == message.from_id ? 'returned to group' : 'invited user';
|
||||||
|
break;
|
||||||
|
case 'messageActionChatDeleteUser':
|
||||||
|
notificationMessage = message.action.user_id == message.from_id ? 'left group' : 'kicked user';
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user