Browse Source

Improved notification text for service messages

User left the group, user returned to group
Closes #448
master
Igor Zhukov 10 years ago
parent
commit
4ae3042cab
  1. 8
      app/js/services.js

8
app/js/services.js

@ -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…
Cancel
Save