Информация о звонках в чате

This commit is contained in:
Халимов Рустам
2026-04-06 01:51:48 +03:00
parent 90096ce2bc
commit fa185afc73
14 changed files with 288 additions and 11 deletions

View File

@@ -108,6 +108,9 @@ export interface Message {
media: MediaItem[];
reactions: Reaction[];
readBy: Array<{ userId: string }>;
callType?: 'voice' | 'video' | string | null;
callStatus?: 'missed' | 'completed' | 'cancelled' | 'declined' | string | null;
duration?: number | null;
}
export interface Chat {

View File

@@ -109,6 +109,11 @@ const translations = {
endCall: 'Завершить',
callEnded: 'Звонок завершён',
callDeclined: 'Звонок отклонён',
audioCall: 'Голосовой звонок',
missedCall: 'Пропущенный звонок',
declinedCall: 'Отклонённый звонок',
cancelledCall: 'Отменённый звонок',
completedCall: 'Вызов завершён',
// Photo/video
photoVideo: 'Фото / видео',
fileBtn: 'Файл',
@@ -470,6 +475,11 @@ const translations = {
endCall: 'End call',
callEnded: 'Call ended',
callDeclined: 'Call declined',
audioCall: 'Audio call',
missedCall: 'Missed call',
declinedCall: 'Declined call',
cancelledCall: 'Cancelled call',
completedCall: 'Call completed',
photoVideo: 'Photo / video',
fileBtn: 'File',
sendError: 'Send error',