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

This commit is contained in:
Daniel Gultsch 2018-11-23 13:11:51 +01:00
parent b2d02e3c0f
commit 40e46ed8fa
1 changed files with 1 additions and 0 deletions

View File

@ -1694,6 +1694,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());