aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDaniel Gultsch <daniel@gultsch.de>2016-04-13 11:13:47 +0200
committerDaniel Gultsch <daniel@gultsch.de>2016-04-13 11:13:47 +0200
commit4332b0df44bb6345b0fbb861d1bb8d24568ea847 (patch)
tree721ecfe668aef238b7ac7e5c13f5b380a6bd00f4 /src
parent3e654bea0e26616b11166a37bbf7822aef25d2f0 (diff)
return own jid as true counterpart on self messages in muc
Diffstat (limited to 'src')
-rw-r--r--src/main/java/eu/siacs/conversations/entities/MucOptions.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main/java/eu/siacs/conversations/entities/MucOptions.java b/src/main/java/eu/siacs/conversations/entities/MucOptions.java
index db27810f..7681a3d4 100644
--- a/src/main/java/eu/siacs/conversations/entities/MucOptions.java
+++ b/src/main/java/eu/siacs/conversations/entities/MucOptions.java
@@ -469,6 +469,9 @@ public class MucOptions {
}
public Jid getTrueCounterpart(String name) {
+ if (name.equals(getSelf().getName())) {
+ return account.getJid().toBareJid();
+ }
User user = findUser(name);
return user == null ? null : user.getJid();
}