Convert video to file and change the appearance of mobile chat
This commit is contained in:
@@ -446,11 +446,13 @@ export class ConversationsService {
|
||||
if (lastType === 'image' || lastType === 'photo' || lastType === 'img') {
|
||||
preview = 'تصویر';
|
||||
} else if (lastType === 'voice' || lastType === 'audio') {
|
||||
preview = 'وویس';
|
||||
preview = 'پیام صوتی';
|
||||
} else if (lastType === 'video') {
|
||||
preview = 'ویدیو';
|
||||
} else if (lastType === 'file' || lastType === 'document' || lastType === 'attachment') {
|
||||
preview = 'فایل';
|
||||
preview = /\.(mp4|webm|mov|m4v|mkv|avi|3gp)(?:\?|$)/i.test(preview)
|
||||
? 'ویدیو'
|
||||
: 'فایل';
|
||||
}
|
||||
const lastAtRaw =
|
||||
lastMsg?.created_at ?? lastMsg?.createdAt ?? row.updated_at ?? row.updatedAt ?? null;
|
||||
|
||||
Reference in New Issue
Block a user