diff options
author | Christian Schneppe <christian.schneppe@pix-art.de> | 2019-10-02 15:46:41 +0200 |
---|---|---|
committer | Christian Schneppe <christian.schneppe@pix-art.de> | 2019-10-02 15:46:41 +0200 |
commit | 4f4683e05235bed5a25de6952978ef7db7b25640 (patch) | |
tree | cea4bc9172b584ec3039b62afb563d49493271d0 /src/main/java/de | |
parent | 40446c25d9b396ffb0b572a9e9acc88713d85e15 (diff) |
Use a more meaningful name for old status
Diffstat (limited to 'src/main/java/de')
-rw-r--r-- | src/main/java/de/pixart/messenger/services/XmppConnectionService.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/de/pixart/messenger/services/XmppConnectionService.java b/src/main/java/de/pixart/messenger/services/XmppConnectionService.java index 083f996cc..432ad0fdf 100644 --- a/src/main/java/de/pixart/messenger/services/XmppConnectionService.java +++ b/src/main/java/de/pixart/messenger/services/XmppConnectionService.java @@ -4121,11 +4121,11 @@ public class XmppConnectionService extends Service { } public void markMessage(Message message, int status, String errorMessage) { - final int c = message.getStatus(); - if (status == Message.STATUS_SEND_FAILED && (c == Message.STATUS_SEND_RECEIVED || c == Message.STATUS_SEND_DISPLAYED)) { + final int oldStatus = message.getStatus(); + if (status == Message.STATUS_SEND_FAILED && (oldStatus == Message.STATUS_SEND_RECEIVED || oldStatus == Message.STATUS_SEND_DISPLAYED)) { return; } - if (status == Message.STATUS_SEND_RECEIVED && c == Message.STATUS_SEND_DISPLAYED) { + if (status == Message.STATUS_SEND_RECEIVED && oldStatus == Message.STATUS_SEND_DISPLAYED) { return; } message.setErrorMessage(errorMessage); |