Temporarily support IncomingMessage.online (#404)

iOS versions prior to 5.5.0.7 send `online` on `IncomingMessage`, rather
than on the top-level entity. This adds a temporary server-side adaptation,
to prevent client-side issues, like persistent typing indicators.
This commit is contained in:
Chris Eager
2021-02-18 12:21:16 -06:00
committed by GitHub
parent ec783133c1
commit aa8525385a
7 changed files with 96 additions and 2 deletions

View File

@@ -32,6 +32,9 @@ public class IncomingMessage {
@JsonProperty
private long timestamp; // deprecated
@JsonProperty
private Boolean online; // use IncomingMessageList.online - this is a temporary adaptation for older clients
public String getDestination() {
return destination;
}
@@ -60,4 +63,7 @@ public class IncomingMessage {
return content;
}
public Boolean isOnline() {
return online;
}
}