mirror of
https://git.jami.net/savoirfairelinux/jami-client-qt.git
synced 2025-04-23 06:32:02 +02:00
chatview: re-show video and audio components
Change-Id: I6c36ab045667d01859a72dfec12e3e02130c57fe GitLab: #947
This commit is contained in:
parent
feb53e6183
commit
640b353703
1 changed files with 2 additions and 0 deletions
|
@ -652,6 +652,7 @@ MessagesAdapter::getMediaInfo(const QString& msg)
|
||||||
return fileInfo;
|
return fileInfo;
|
||||||
}
|
}
|
||||||
static const QRegExp vPattern("(video/)(avi|mov|webm|webp|rmvb)$", Qt::CaseInsensitive);
|
static const QRegExp vPattern("(video/)(avi|mov|webm|webp|rmvb)$", Qt::CaseInsensitive);
|
||||||
|
vPattern.indexIn(mime.name());
|
||||||
QString type = vPattern.capturedTexts().size() == 3 ? vPattern.capturedTexts()[1] : "";
|
QString type = vPattern.capturedTexts().size() == 3 ? vPattern.capturedTexts()[1] : "";
|
||||||
if (!type.isEmpty()) {
|
if (!type.isEmpty()) {
|
||||||
return {
|
return {
|
||||||
|
@ -660,6 +661,7 @@ MessagesAdapter::getMediaInfo(const QString& msg)
|
||||||
};
|
};
|
||||||
} else {
|
} else {
|
||||||
static const QRegExp aPattern("(audio/)(ogg|flac|wav|mpeg|mp3)$", Qt::CaseInsensitive);
|
static const QRegExp aPattern("(audio/)(ogg|flac|wav|mpeg|mp3)$", Qt::CaseInsensitive);
|
||||||
|
aPattern.indexIn(mime.name());
|
||||||
type = aPattern.capturedTexts().size() == 3 ? aPattern.capturedTexts()[1] : "";
|
type = aPattern.capturedTexts().size() == 3 ? aPattern.capturedTexts()[1] : "";
|
||||||
if (!type.isEmpty()) {
|
if (!type.isEmpty()) {
|
||||||
return {
|
return {
|
||||||
|
|
Loading…
Add table
Reference in a new issue