fix sending video file as is, if it is in our directory

This commit is contained in:
Christian Schneppe 2017-02-28 20:24:57 +01:00
parent 71e5ae271f
commit 51b436fbf0

View file

@ -262,11 +262,11 @@ public class FileBackend {
}
public boolean useFileAsIs(Uri uri) {
String path = getOriginalPath(uri);
String path = uri.getPath();
if (path == null) {
return false;
}
if (path.contains(getConversationsDirectory("null"))) {
if (path.contains(getDirectoryName("null"))) {
Log.d(Config.LOGTAG, "File " + path + " is in our directory, sending as is");
return true;
}