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) {
|
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;
|
final int before = this.options;
|
||||||
if (value) {
|
if (value) {
|
||||||
this.options |= 1 << option;
|
this.options |= 1 << option;
|
||||||
|
|
|
@ -1609,6 +1609,10 @@ public class ConversationFragment extends XmppFragment
|
||||||
.show();
|
.show();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
final Account account = conversation.getAccount();
|
||||||
|
if (account.setOption(Account.OPTION_SOFT_DISABLED, false)) {
|
||||||
|
activity.xmppConnectionService.updateAccount(account);
|
||||||
|
}
|
||||||
final Contact contact = conversation.getContact();
|
final Contact contact = conversation.getContact();
|
||||||
if (RtpCapability.jmiSupport(contact)) {
|
if (RtpCapability.jmiSupport(contact)) {
|
||||||
triggerRtpSession(contact.getAccount(), contact.getJid().asBareJid(), action);
|
triggerRtpSession(contact.getAccount(), contact.getJid().asBareJid(), action);
|
||||||
|
|
Loading…
Reference in a new issue