fix sending video file as is, if it is in our directory
This commit is contained in:
parent
71e5ae271f
commit
51b436fbf0
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Reference in a new issue