diff options
Diffstat (limited to 'src/eu/siacs/conversations/services/ImageProvider.java')
-rw-r--r-- | src/eu/siacs/conversations/services/ImageProvider.java | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/eu/siacs/conversations/services/ImageProvider.java b/src/eu/siacs/conversations/services/ImageProvider.java index 798a4e25..80cfbd95 100644 --- a/src/eu/siacs/conversations/services/ImageProvider.java +++ b/src/eu/siacs/conversations/services/ImageProvider.java @@ -36,7 +36,9 @@ public class ImageProvider extends ContentProvider { throw new FileNotFoundException(); } String conversationUuid = uuidsSplited[1]; - String messageUuid = uuidsSplited[2]; + String messageUuid = uuidsSplited[2].split("\\.")[0]; + + Log.d("xmppService","messageUuid="+messageUuid); Conversation conversation = databaseBackend .findConversationByUuid(conversationUuid); @@ -113,7 +115,8 @@ public class ImageProvider extends ContentProvider { .parse("content://eu.siacs.conversations.images/" + message.getConversationUuid() + "/" - + message.getUuid()); + + message.getUuid() + + ".webp"); } public static Uri getIncomingContentUri() { |