fixed context menu on self contact

This commit is contained in:
Daniel Gultsch 2019-01-27 18:57:41 +01:00
parent 2bc9fdf5d3
commit 8bc9f9a7c8

View file

@ -2737,7 +2737,7 @@ public class ConversationFragment extends XmppFragment implements EditMessage.Ke
} }
final PopupMenu popupMenu = new PopupMenu(getActivity(), v); final PopupMenu popupMenu = new PopupMenu(getActivity(), v);
final Contact contact = message.getContact(); final Contact contact = message.getContact();
if (message.getStatus() <= Message.STATUS_RECEIVED || (contact != null && contact.isSelf())) { if (message.getStatus() <= Message.STATUS_RECEIVED && (contact == null || !contact.isSelf())) {
if (message.getConversation().getMode() == Conversation.MODE_MULTI) { if (message.getConversation().getMode() == Conversation.MODE_MULTI) {
final Jid cp = message.getCounterpart(); final Jid cp = message.getCounterpart();
if (cp == null || cp.isBareJid()) { if (cp == null || cp.isBareJid()) {