aboutsummaryrefslogtreecommitdiffstats
path: root/src/main
diff options
context:
space:
mode:
authorChristian Schneppe <christian.schneppe@pix-art.de>2019-12-08 13:59:41 +0100
committerChristian Schneppe <christian.schneppe@pix-art.de>2019-12-08 13:59:41 +0100
commit6c445cc68a74b4c09f2305868284a2ad7a54ec83 (patch)
tree6844a452fc1bb5b2f6714f921cbece8eea05437c /src/main
parentad32a6889b6fd23969eed5e03d9dbe1b02063b1e (diff)
use current time on resend message
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/de/pixart/messenger/services/XmppConnectionService.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main/java/de/pixart/messenger/services/XmppConnectionService.java b/src/main/java/de/pixart/messenger/services/XmppConnectionService.java
index 347406c60..87b7b67ae 100644
--- a/src/main/java/de/pixart/messenger/services/XmppConnectionService.java
+++ b/src/main/java/de/pixart/messenger/services/XmppConnectionService.java
@@ -1562,6 +1562,9 @@ public class XmppConnectionService extends Service {
}
private void sendMessage(final Message message, final boolean resend, final boolean delay) {
+ if (resend) {
+ message.setTime(System.currentTimeMillis());
+ }
final Account account = message.getConversation().getAccount();
if (account.setShowErrorNotification(true)) {
databaseBackend.updateAccount(account);