mirror of
https://github.com/AsamK/signal-cli
synced 2025-08-29 02:20:39 +00:00
Always save when sending messages
This commit is contained in:
parent
5c1127ced6
commit
800b92c4ba
1 changed files with 26 additions and 23 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue