From 6e766f98e9b2b97b8f0370fd7716068745b221c9 Mon Sep 17 00:00:00 2001 From: Arne Date: Tue, 15 Oct 2024 21:19:45 +0200 Subject: [PATCH] Disable create call log files --- .../conversations/xmpp/jingle/JingleRtpConnection.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/main/java/eu/siacs/conversations/xmpp/jingle/JingleRtpConnection.java b/src/main/java/eu/siacs/conversations/xmpp/jingle/JingleRtpConnection.java index b544943c5..548416810 100644 --- a/src/main/java/eu/siacs/conversations/xmpp/jingle/JingleRtpConnection.java +++ b/src/main/java/eu/siacs/conversations/xmpp/jingle/JingleRtpConnection.java @@ -2866,11 +2866,15 @@ public class JingleRtpConnection extends AbstractJingleConnection this.webRTCWrapper.verifyClosed(); this.jingleConnectionManager.setTerminalSessionState(id, getEndUserState(), getMedia()); super.finish(); + /* // Disable call log files for now + try { - File log = new File(Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DOWNLOADS), "Cheogram/calls/" + id.getWith().asBareJid() + "." + id.getSessionId() + "." + created + ".log"); + File log = new File(Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DOWNLOADS), "monocles chat/calls/" + id.getWith().asBareJid() + "." + id.getSessionId() + "." + created + ".log"); log.getParentFile().mkdirs(); Runtime.getRuntime().exec(new String[]{"logcat", "-dT", "" + created + ".0", "-f", log.getAbsolutePath()}); } catch (final IOException e) { } + + */ } else { throw new IllegalStateException( String.format("Unable to call finish from %s", this.state));