+
Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -71,14 +71,20 @@ const RoomViewListener = memo(
return t('disconnectModal.content.removed');
case DisconnectReason.DUPLICATE_IDENTITY:
return t('disconnectModal.content.duplicate');
case DisconnectReason.ROOM_DELETED:
return t('disconnectModal.content.deleted');
default:
return t('disconnectModal.content.default');
}
};

const handleDisconnected = useCallback(
async (reason?: DisconnectReason) => {
if (reason === DisconnectReason.PARTICIPANT_REMOVED || reason === DisconnectReason.DUPLICATE_IDENTITY) {
if (
reason === DisconnectReason.PARTICIPANT_REMOVED ||
reason === DisconnectReason.DUPLICATE_IDENTITY ||
reason === DisconnectReason.ROOM_DELETED
) {
DeviceEventEmitter.emit(ActionEmitEvent.ON_OPEN_MEZON_MEET, {
isEndCall: true,
clanId,
Expand Down
3 changes: 2 additions & 1 deletion libs/translations/src/languages/en/channelVoice.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@
"content": {
"removed": "You have been removed from the voice channel",
"duplicate": "You have been disconnected due to another join",
"default": "You have been disconnected from the voice channel"
"default": "You have been disconnected from the voice channel",
"deleted": "The voice channel has been deleted"
},
"confirm": "Confirm"
}
Expand Down
3 changes: 2 additions & 1 deletion libs/translations/src/languages/vi/channelVoice.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@
"content": {
"removed": "Bạn đã bị xóa khỏi kênh thoại",
"duplicate": "Bạn đã bị ngắt kết nối do tham gia ở nơi khác",
"default": "Bạn đã bị ngắt kết nối khỏi kênh thoại"
"default": "Bạn đã bị ngắt kết nối khỏi kênh thoại",
"deleted": "Kênh thoại đã bị xóa"
},
"confirm": "Xác nhận"
}
Expand Down
Loading
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载