mirror of
https://github.com/moparisthebest/Conversations
synced 2024-11-30 12:42:16 -05:00
handle file attachment when missing connection
This commit is contained in:
parent
544c5b4a21
commit
2c004857f6
@ -64,6 +64,7 @@ import eu.siacs.conversations.services.XmppConnectionService.OnRosterUpdate;
|
|||||||
import eu.siacs.conversations.ui.adapter.ConversationAdapter;
|
import eu.siacs.conversations.ui.adapter.ConversationAdapter;
|
||||||
import eu.siacs.conversations.utils.ExceptionHelper;
|
import eu.siacs.conversations.utils.ExceptionHelper;
|
||||||
import eu.siacs.conversations.xmpp.OnUpdateBlocklist;
|
import eu.siacs.conversations.xmpp.OnUpdateBlocklist;
|
||||||
|
import eu.siacs.conversations.xmpp.XmppConnection;
|
||||||
import eu.siacs.conversations.xmpp.jid.InvalidJidException;
|
import eu.siacs.conversations.xmpp.jid.InvalidJidException;
|
||||||
import eu.siacs.conversations.xmpp.jid.Jid;
|
import eu.siacs.conversations.xmpp.jid.Jid;
|
||||||
|
|
||||||
@ -1446,7 +1447,8 @@ public class ConversationActivity extends XmppActivity
|
|||||||
}
|
}
|
||||||
|
|
||||||
private long getMaxHttpUploadSize(Conversation conversation) {
|
private long getMaxHttpUploadSize(Conversation conversation) {
|
||||||
return conversation.getAccount().getXmppConnection().getFeatures().getMaxHttpUploadSize();
|
final XmppConnection connection = conversation.getAccount().getXmppConnection();
|
||||||
|
return connection == null ? -1 : connection.getFeatures().getMaxHttpUploadSize();
|
||||||
}
|
}
|
||||||
|
|
||||||
private void setNeverAskForBatteryOptimizationsAgain() {
|
private void setNeverAskForBatteryOptimizationsAgain() {
|
||||||
|
Loading…
Reference in New Issue
Block a user