removed unnecessary otr error response
This commit is contained in:
parent
05d1f46c15
commit
2b958e51df
|
@ -124,10 +124,6 @@ public class MessageParser extends AbstractParser implements
|
||||||
finishedMessage.setCounterpart(from);
|
finishedMessage.setCounterpart(from);
|
||||||
return finishedMessage;
|
return finishedMessage;
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
String receivedId = packet.getId();
|
|
||||||
if (receivedId != null) {
|
|
||||||
mXmppConnectionService.replyWithNotAcceptable(account, packet);
|
|
||||||
}
|
|
||||||
conversation.resetOtrSession();
|
conversation.resetOtrSession();
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1969,14 +1969,6 @@ public class XmppConnectionService extends Service {
|
||||||
return this.mBitmapCache;
|
return this.mBitmapCache;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void replyWithNotAcceptable(Account account, MessagePacket packet) {
|
|
||||||
if (account.getStatus() == Account.State.ONLINE) {
|
|
||||||
MessagePacket error = this.mMessageGenerator
|
|
||||||
.generateNotAcceptable(packet);
|
|
||||||
sendMessagePacket(account, error);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public void syncRosterToDisk(final Account account) {
|
public void syncRosterToDisk(final Account account) {
|
||||||
new Thread(new Runnable() {
|
new Thread(new Runnable() {
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue