Merge branch 'master' of git.linphone.org:linphone-android into bellesip
Conflicts: submodules/externals/exosip submodules/linphone
This commit is contained in:
commit
7d0dd35a2e
3 changed files with 7 additions and 6 deletions
|
@ -521,10 +521,11 @@ public class ChatFragment extends Fragment implements OnClickListener, LinphoneC
|
|||
|
||||
public void onMessageReceived(int id, LinphoneAddress from, LinphoneChatMessage message) {
|
||||
if (from.asStringUriOnly().equals(sipUri)) {
|
||||
if (message.getMessage() != null) {
|
||||
displayMessage(id, message.getMessage(), String.valueOf(System.currentTimeMillis()), true, null, messagesLayout);
|
||||
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();
|
||||
|
@ -533,7 +534,7 @@ public class ChatFragment extends Fragment implements OnClickListener, LinphoneC
|
|||
|
||||
@Override
|
||||
public void onLinphoneChatMessageStateChanged(LinphoneChatMessage msg, State state) {
|
||||
final String finalMessage = msg.getMessage();
|
||||
final String finalMessage = msg.getText();
|
||||
final String finalImage = msg.getExternalBodyUrl();
|
||||
final State finalState = state;
|
||||
if (LinphoneActivity.isInstanciated() && state != State.InProgress) {
|
||||
|
|
|
@ -944,7 +944,7 @@ public final class LinphoneManager implements LinphoneCoreListener {
|
|||
LinphoneAddress from = message.getFrom();
|
||||
ChatStorage chatStorage = new ChatStorage(mServiceContext);
|
||||
|
||||
String textMessage = message.getMessage();
|
||||
String textMessage = message.getText();
|
||||
String url = message.getExternalBodyUrl();
|
||||
String notificationText = null;
|
||||
int id = -1;
|
||||
|
|
|
@ -1 +1 @@
|
|||
Subproject commit 94dc35278fbbaf0f5df0140ff9ef764e14a45951
|
||||
Subproject commit 922851412eddf866d48ebcd9ad7231be39e5231f
|
Loading…
Reference in a new issue