Fixed a variety of sync response decoding bugs
Apologies for the mega-MR. Sync response decoding has been fixed for an initial sync response from a fresh server setup as well as decoding a sample sync response given in the matrix specification. The testLoginAndSync
test case still does not pass as there are issues with room creation, but that will be resolved in a subsequent MR.
Changes:
- Added a few unit tests for decoding sample JSON responses from a variety of datatypes listed in the Matrix specification
- Added the following event content models:
- Presence
- Typing
- Receipts
- HistoryVisibility
- GuestAccess
- Fixed coding keys for the following data types:
- IdentityServer
- JoinRules
- RoomEncryption
- RoomMember
- PowerLevels
- Added
m.tag
type as an account type - Fixed/changed fields for the following data types:
- CreateContent
- JoinRules
- PowerLevels
- MinimalEvents
- JoinedRoomSyncInfo