mirror of
https://github.com/moparisthebest/Conversations
synced 2024-12-01 05:02:21 -05:00
fix to detect the sender jid correctly
This commit is contained in:
parent
78847d0749
commit
4759607a77
@ -54,9 +54,14 @@ public class GeoHelper {
|
|||||||
Intent locationPluginIntent = new Intent("eu.siacs.conversations.location.show");
|
Intent locationPluginIntent = new Intent("eu.siacs.conversations.location.show");
|
||||||
locationPluginIntent.putExtra("latitude",latitude);
|
locationPluginIntent.putExtra("latitude",latitude);
|
||||||
locationPluginIntent.putExtra("longitude",longitude);
|
locationPluginIntent.putExtra("longitude",longitude);
|
||||||
locationPluginIntent.putExtra("jid",conversation.getJid().toString());
|
if (conversation.getMode() == Conversation.MODE_SINGLE) {
|
||||||
if (conversation.getMode() == Conversation.MODE_SINGLE && message.getStatus() == Message.STATUS_RECEIVED) {
|
if (message.getStatus() == Message.STATUS_RECEIVED) {
|
||||||
locationPluginIntent.putExtra("name",conversation.getName());
|
locationPluginIntent.putExtra("name",conversation.getName());
|
||||||
|
locationPluginIntent.putExtra("jid",message.getCounterpart().toString());
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
locationPluginIntent.putExtra("jid",conversation.getAccount().getJid().toString());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
intents.add(locationPluginIntent);
|
intents.add(locationPluginIntent);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user