android-rcs / rcsjta

RCS-e stack for Android with GSMA API
180 stars 74 forks source link

Capabilities timestamp is not always updated upon reception of an option #180

Closed yplo6403 closed 8 years ago

yplo6403 commented 8 years ago

Upon reception of an unsollicited option (i.e. a request), update of the contact provider is only performed if capabilities have changed. Timestamp of the last capabilities refresh should always be updated. If received options were requested (i.e. it is a response), timestamp of the last capabilities refresh is always updated. Reproducible.

Initial conditions: A and B are both RCS contacts Action: A invite B for a one to one chat Result: when entering the conversation A sends an option request to B. B sends back the response. Action: wait one minute (until the validity of the capabilities have expired) Result: The B capabilities are no more valid Action: B sends a capability request to A Expected result: A updates the last time response for the B capabilities. Result: B capabilities are not updated (and are no more valid).

yplo6403 commented 8 years ago

Bug fixed with commit ID fb5464bd20df670caad1ba5842898bc80b58a3b3