You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 12, 2022. It is now read-only.
Vector-Android does not seem to use that function to get the Age of an Event. Regardless. It seems kinda counterproductive if an Object does not Age further, after getAge() is called for the first time.
@bmarty thank you for your answer. I am still trying to get to terms with SDK. Unfortunately there seems to be a big lack of how to use the SDK. The readme.md is a bit unspecific on most subjects and (at least to me) riot-vector is quite a beast to be used as an example - to much "glossy"-Stuff going on to keep track of the actual usage of the SDK. At least to my self-taught Java/Android Skills :) So, i hope, that this is not a stupid Question.
I tried to write a Comparator to sort Rooms according to last received Event using (RoomSumary.class).getLatestEvent().getAge(). I expected getAge() to return the current Age of the Event. But after the first call to getAge() the Age never changes, because it is only calculated for the first call.
Lets say i call getAge() on am Event and it returns 200.
As the Eventstream progresses i would expect getAge() to return a greater Value, but it will always return 200, because of "if (null != age)". So after the first call the Event never ages.
Unlike for example the getOriginServerTs() i would expect getAge() to always return the current Age of the Event. If i would call getAge() on a living object i would expect a different result if would call the same function a year later on the same beeing. So this is probably more a questions towards the semantics of the Method().
Vector-Android does not seem to use that function to get the Age of an Event. Regardless. It seems kinda counterproductive if an Object does not Age further, after getAge() is called for the first time.
Is there a special reason for this behavior?
matrix-android-sdk/matrix-sdk/src/main/java/org/matrix/androidsdk/rest/model/Event.java
Line 449 in 497c7fa
The text was updated successfully, but these errors were encountered: