Fix double downloading of pictures when chat
This commit is contained in:
parent
ce3697a66c
commit
8efd17f83a
1 changed files with 2 additions and 1 deletions
|
@ -524,7 +524,8 @@ public class ChatFragment extends Fragment implements OnClickListener, LinphoneC
|
|||
if (message.getText() != null) {
|
||||
displayMessage(id, message.getText(), String.valueOf(System.currentTimeMillis()), true, null, messagesLayout);
|
||||
} else if (message.getExternalBodyUrl() != null) {
|
||||
Bitmap bm = downloadImage(message.getExternalBodyUrl());
|
||||
byte[] rawImage = LinphoneActivity.instance().getChatStorage().getRawImageFromMessage(id);
|
||||
Bitmap bm = BitmapFactory.decodeByteArray(rawImage, 0, rawImage.length);
|
||||
displayImageMessage(id, bm, String.valueOf(System.currentTimeMillis()), true, null, messagesLayout);
|
||||
}
|
||||
scrollToEnd();
|
||||
|
|
Loading…
Reference in a new issue