diff options
author | Christian Schneppe <christian@pix-art.de> | 2018-05-17 20:37:33 +0200 |
---|---|---|
committer | Christian Schneppe <christian@pix-art.de> | 2018-05-17 20:37:33 +0200 |
commit | 23152f44aa037924588e42b446ec770f0470c312 (patch) | |
tree | c4d8486a36c49ac5c91cdab4e03c7ec9aab67879 /src/main/java/de/pixart/messenger/services/XmppConnectionService.java | |
parent | 78211bfd01bbb8a9adf34c4c6fa6e6932259f669 (diff) |
do not include body in simple status updates to not trigger fts update
Diffstat (limited to '')
-rw-r--r-- | src/main/java/de/pixart/messenger/services/XmppConnectionService.java | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/main/java/de/pixart/messenger/services/XmppConnectionService.java b/src/main/java/de/pixart/messenger/services/XmppConnectionService.java index 5bf036bd7..c4a40c1a3 100644 --- a/src/main/java/de/pixart/messenger/services/XmppConnectionService.java +++ b/src/main/java/de/pixart/messenger/services/XmppConnectionService.java @@ -2896,7 +2896,11 @@ public class XmppConnectionService extends Service { } public void updateMessage(Message message) { - databaseBackend.updateMessage(message); + updateMessage(message, true); + } + + public void updateMessage(Message message, boolean includeBody) { + databaseBackend.updateMessage(message, includeBody); updateConversationUi(); } @@ -2948,7 +2952,7 @@ public class XmppConnectionService extends Service { if (outPacket != null) { mMessageGenerator.addDelay(outPacket, message.getTimeSent()); message.setStatus(Message.STATUS_SEND); - databaseBackend.updateMessage(message); + databaseBackend.updateMessage(message, false); sendMessagePacket(account, outPacket); } } @@ -3392,7 +3396,7 @@ public class XmppConnectionService extends Service { } message.setErrorMessage(errorMessage); message.setStatus(status); - databaseBackend.updateMessage(message); + databaseBackend.updateMessage(message, false); updateConversationUi(); } @@ -3571,7 +3575,7 @@ public class XmppConnectionService extends Service { if (readMessages.size() > 0) { Runnable runnable = () -> { for (Message message : readMessages) { - databaseBackend.updateMessage(message); + databaseBackend.updateMessage(message, false); } }; mDatabaseWriterExecutor.execute(runnable); |