diff options
author | Daniel Gultsch <daniel@gultsch.de> | 2016-04-13 11:13:47 +0200 |
---|---|---|
committer | Daniel Gultsch <daniel@gultsch.de> | 2016-04-13 11:13:47 +0200 |
commit | 4332b0df44bb6345b0fbb861d1bb8d24568ea847 (patch) | |
tree | 721ecfe668aef238b7ac7e5c13f5b380a6bd00f4 /src/main/java/eu/siacs | |
parent | 3e654bea0e26616b11166a37bbf7822aef25d2f0 (diff) |
return own jid as true counterpart on self messages in muc
Diffstat (limited to 'src/main/java/eu/siacs')
-rw-r--r-- | src/main/java/eu/siacs/conversations/entities/MucOptions.java | 3 |
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 db27810fc..7681a3d42 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(); } |