Wire-webapp: Bug: messages are displayed in a wrong order when client time is not exact

Created on 24 Dec 2016  路  6Comments  路  Source: wireapp/wire-webapp

I've discovered an interesting case, where messages appeared in different order on different devices.
Have a look what two users see on different clients. The number in a message denotes the order of when it was sent:

image

Further investigations showed that the time on Windows box was ~20 seconds ahead, comparing to all other clocks. Even though the OS time was set to be automatically synchronized with internet time!

I disabled the automatic synchronization and enabled it again, and for all new messages the issue was gone.

While yes, it is an issue with Windows time service itself, I think the app should handle this case somehow. Who knows how many users are affected with this bug?

Perhaps a simple and sufficient solution would be to check on app startup if client time is accurate (like time.is does it), and if there is a sufficient difference, show a warning and suggest users to synchronize the time.

bug / fix 馃悶

Most helpful comment

It gets time to fix this bug. We will investigate on it in our next "Service Run". 鉁岋笍

All 6 comments

That's a known issue when the system time is wrong. Fortunately today most of the devices have the correct time. But it's an interesting idea maybe to check in the beginning if the time is correct and just inform the user that their time is most likely wrong and some messages might not be in order.

@maxin Thanks for the detailed issue report. Just as @lipis stated this is currently a limitation of the webapp. Due to some decision we took with the database stucture and primary keys, we currently cannot and do not update timestamps of outgoing messages. All incoming messages are tagged with a server timestamp. We do get that timestamp from the server when sending a message but as we have previously written the message to the database. We have not found the time to write and test a database upgrade routine that allows us to handle this more properly moving forward. It's definitely on our wish list though.

What a coincidence, during one day I stumbled upon 3 issues that all look like a duplicate of this one. I was not searching for them on purpose :)

It gets time to fix this bug. We will investigate on it in our next "Service Run". 鉁岋笍

Some of my contacts are also affected, always windows desktop client, but from this issue and the related ones I understand this is a general problem of all clients. It's a show-stopper actually, for now I just recommend my contacts not to use desktop client, only mobile (it's too difficult and error-prone for most non-technical users to configure time sync on windows).

This is the most significant issue I found during my first 24 hs of Wire use, all other issues are less important. You guys are doing a great job!

Was this page helpful?
0 / 5 - 0 ratings