return own jid as true counterpart on self messages in muc

This commit is contained in:
Daniel Gultsch 2016-04-13 11:13:47 +02:00
parent 3e654bea0e
commit 4332b0df44
1 changed files with 3 additions and 0 deletions

View File

@ -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();
}