diff --git a/app/js/locales/en-us.json b/app/js/locales/en-us.json index d18f7680..9dbeb0a3 100644 --- a/app/js/locales/en-us.json +++ b/app/js/locales/en-us.json @@ -295,13 +295,14 @@ "conversation_group_photo_updated": "changed group photo", "conversation_group_photo_removed": "removed group photo", "conversation_returned_to_group": "returned to group", + "conversation_joined_group": "joined the group", "conversation_invited_user": "invited {user}", "conversation_invited_users": "{'one': 'invited {} user', 'other': 'invited {} users'}", "conversation_left_group": "left group", "conversation_kicked_user": "removed {user}", "conversation_invited_user_message": "invited user", "conversation_kicked_user_message": "removed user", - "conversation_joined_by_link": "joined group", + "conversation_joined_by_link": "joined the group", "conversation_converted_to_supergroup": "upgraded to a supergroup", "conversation_created_channel": "Channel created", "conversation_changed_channel_name": "Channel renamed", @@ -324,6 +325,7 @@ "message_service_kicked_user": "removed {user}", "message_service_left_group": "left group", "message_service_joined_by_link": "joined group via invite link", + "message_service_joined": "joined the group", "message_service_unsupported_action": "unsupported action {action}", "message_service_bot_intro_header": "What can this bot do?", "message_service_converted_to_supergroup": "upgraded the group to a supergroup", diff --git a/app/js/messages_manager.js b/app/js/messages_manager.js index d478c758..8af48717 100644 --- a/app/js/messages_manager.js +++ b/app/js/messages_manager.js @@ -1239,7 +1239,11 @@ angular.module('myApp.services') if (apiMessage.action.users.length == 1) { apiMessage.action.user_id = apiMessage.action.users[0]; if (apiMessage.fromID == apiMessage.action.user_id) { - apiMessage.action._ = 'messageActionChatReturn'; + if (isChannel) { + apiMessage.action._ = 'messageActionChatJoined'; + } else { + apiMessage.action._ = 'messageActionChatReturn'; + } } } else if (apiMessage.action.users.length > 1) { @@ -2517,6 +2521,9 @@ angular.module('myApp.services') case 'messageActionChatReturn': notificationMessage = _('conversation_returned_to_group_raw'); break; + case 'messageActionChatJoined': + notificationMessage = _('conversation_joined_group_raw'); + break; case 'messageActionChatDeleteUser': notificationMessage = _('conversation_kicked_user_message_raw'); break; diff --git a/app/partials/desktop/dialog_service.html b/app/partials/desktop/dialog_service.html index ef702bf3..bad19614 100644 --- a/app/partials/desktop/dialog_service.html +++ b/app/partials/desktop/dialog_service.html @@ -5,6 +5,7 @@ + diff --git a/app/partials/desktop/message_service.html b/app/partials/desktop/message_service.html index 1cff08ca..99d94ce3 100644 --- a/app/partials/desktop/message_service.html +++ b/app/partials/desktop/message_service.html @@ -8,6 +8,7 @@ + diff --git a/app/partials/mobile/message_service.html b/app/partials/mobile/message_service.html index 1cff08ca..99d94ce3 100644 --- a/app/partials/mobile/message_service.html +++ b/app/partials/mobile/message_service.html @@ -8,6 +8,7 @@ +