Always save when sending messages

This commit is contained in:
AsamK 2016-04-16 14:15:36 +02:00
parent 5c1127ced6
commit 800b92c4ba

View file

@ -548,6 +548,7 @@ class Manager implements Signal {
private void sendMessage(SignalServiceDataMessage message, Collection<String> recipients)
throws IOException, EncapsulatedExceptions, UntrustedIdentityException {
try {
SignalServiceMessageSender messageSender = new SignalServiceMessageSender(URL, TRUST_STORE, username, password,
deviceId, signalProtocolStore, USER_AGENT, Optional.<SignalServiceMessageSender.EventListener>absent());
@ -577,8 +578,10 @@ class Manager implements Signal {
handleEndSession(recipient.getNumber());
}
}
} finally {
save();
}
}
private SignalServiceContent decryptMessage(SignalServiceEnvelope envelope) {
SignalServiceCipher cipher = new SignalServiceCipher(new SignalServiceAddress(username), signalProtocolStore);