Disable create call log files

This commit is contained in:
Arne 2024-10-15 21:19:45 +02:00
parent 5737459aa8
commit 6e766f98e9

View file

@ -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));