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

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