@Override public boolean onMenuItemClick(MenuItem item) { switch (item.getItemId()) { case 0: if (properties.getChannel() != null && properties.getChannel().isDeleted()) { uiService.deleteGroupConversation(properties.getChannel()); } else { uiService.deleteConversationThread(properties.getContact(), properties.getChannel()); } break; case 1: uiService.deleteGroupConversation(properties.getChannel()); break; case 2: uiService.channelLeaveProcess(properties.getChannel()); break; default: } return true; } };