remove soft disable flag when attempting call
This commit is contained in:
parent
f042efd550
commit
69425e677c
|
@ -258,6 +258,9 @@ public class Account extends AbstractEntity implements AvatarService.Avatarable
|
|||
}
|
||||
|
||||
public boolean setOption(final int option, final boolean value) {
|
||||
if (value && (option == OPTION_DISABLED || option == OPTION_SOFT_DISABLED)) {
|
||||
this.setStatus(State.OFFLINE);
|
||||
}
|
||||
final int before = this.options;
|
||||
if (value) {
|
||||
this.options |= 1 << option;
|
||||
|
|
|
@ -1609,6 +1609,10 @@ public class ConversationFragment extends XmppFragment
|
|||
.show();
|
||||
return;
|
||||
}
|
||||
final Account account = conversation.getAccount();
|
||||
if (account.setOption(Account.OPTION_SOFT_DISABLED, false)) {
|
||||
activity.xmppConnectionService.updateAccount(account);
|
||||
}
|
||||
final Contact contact = conversation.getContact();
|
||||
if (RtpCapability.jmiSupport(contact)) {
|
||||
triggerRtpSession(contact.getAccount(), contact.getJid().asBareJid(), action);
|
||||
|
|
Loading…
Reference in a new issue