make sure that conversation is 1:1 before offering to select presence on file resend

This commit is contained in:
Christian Schneppe 2018-11-30 21:07:34 +01:00
parent 17a326ecb4
commit faf18982c1

View file

@ -1933,6 +1933,7 @@ public class ConversationFragment extends XmppFragment implements EditMessage.Ke
final XmppConnection xmppConnection = conversation.getAccount().getXmppConnection();
if (!message.hasFileOnRemoteHost()
&& xmppConnection != null
&& conversation.getMode() == Conversational.MODE_SINGLE
&& !xmppConnection.getFeatures().httpUpload(message.getFileParams().size)) {
activity.selectPresence(conversation, () -> {
message.setCounterpart(conversation.getNextCounterpart());