From dab3a95ab9ebcfc47020306cc6757adf97734a66 Mon Sep 17 00:00:00 2001 From: xtaodada Date: Wed, 17 Jan 2024 23:56:51 +0800 Subject: [PATCH] feat: send ogg as audio --- .../main/java/org/telegram/messenger/SendMessagesHelper.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TMessagesProj/src/main/java/org/telegram/messenger/SendMessagesHelper.java b/TMessagesProj/src/main/java/org/telegram/messenger/SendMessagesHelper.java index e6560b15ac..7822832d39 100644 --- a/TMessagesProj/src/main/java/org/telegram/messenger/SendMessagesHelper.java +++ b/TMessagesProj/src/main/java/org/telegram/messenger/SendMessagesHelper.java @@ -6658,7 +6658,7 @@ private static int prepareSendingDocumentInternal(AccountInstance accountInstanc title = mediaMetadataRetriever.extractMetadata(MediaMetadataRetriever.METADATA_KEY_TITLE); permormer = mediaMetadataRetriever.extractMetadata(MediaMetadataRetriever.METADATA_KEY_ARTIST); } - if (editingMessageObject == null && extL.equals("ogg") && MediaController.isOpusFile(f.getAbsolutePath()) == 1) { + if (editingMessageObject == null && extL.equals("opus") && MediaController.isOpusFile(f.getAbsolutePath()) == 1) { isVoice = true; } } catch (Exception e) {