Due to server bugs or whatever it sometimes happens that old state events appear in the setState method in the room class. Previously we checked if we already know this event ID, but for this we needed to check the timeline which is very fluid. Also this is a database operation in a non-async method which works in Hive but not in Sembast. Using originServerTs is not 100% safe as well but should be more stable because the chance that servers have veeery wrong time (which is necessary here) is much lower than the risk that the timeline is not long enough to know the old event. |
||
|---|---|---|
| .. | ||
| encryption | ||
| src | ||
| encryption.dart | ||
| matrix.dart | ||