~singpolyma/cheogram-android

9f191f64da52f3e339c23851f78eeece241f06f9 — Daniel Gultsch 6 years ago 52c625b
do not display 'user left' toast in members only groups. fixes #3144
1 files changed, 2 insertions(+), 1 deletions(-)

M src/main/java/eu/siacs/conversations/ui/ConversationFragment.java
M src/main/java/eu/siacs/conversations/ui/ConversationFragment.java => src/main/java/eu/siacs/conversations/ui/ConversationFragment.java +2 -1
@@ 955,11 955,12 @@ public class ConversationFragment extends XmppFragment implements EditMessage.Ke
			final boolean received = message.getStatus() <= Message.STATUS_RECEIVED;
			if (received) {
				if (message.getConversation() instanceof Conversation && message.getConversation().getMode() == Conversation.MODE_MULTI) {
					Jid tcp = message.getTrueCounterpart();
					Jid user = message.getCounterpart();
					if (user != null && !user.isBareJid()) {
						final MucOptions mucOptions = ((Conversation) message.getConversation()).getMucOptions();
						if (mucOptions.participating() || ((Conversation) message.getConversation()).getNextCounterpart() != null) {
							if (!mucOptions.isUserInRoom(user)) {
							if (!mucOptions.isUserInRoom(user) && mucOptions.findUserByRealJid(tcp == null ? null : tcp.asBareJid()) == null) {
								Toast.makeText(getActivity(), activity.getString(R.string.user_has_left_conference, user.getResource()), Toast.LENGTH_SHORT).show();
							}
							highlightInConference(user.getResource());