Page MenuHomePhorge

Split MatrixSdk
Changes PlannedPublicDraft

Authored by tusooa on Thu, Jun 18, 8:56 PM.

Details

Reviewers
None
Group Reviewers
O1: the Kazv Project
Summary

MatrixSdk is now separated into 3 different classes:

  • MatrixSdk, the entrypoint that controls listing and deleting sessions; it also handles MatrixSessionController
  • MatrixSessionController, which controls the loading and saving of one single session
  • MatrixSession, which controls things performed inside a session (login, sync, sending messages, etc.)

This should make tests easier and simplify logic.

Type: skip

BUG: https://iron.lily-is.land/T173

Test Plan

Check that kazv behaves exactly the same as before. Most importantly:

  • Check login and switching session works.
  • Check that the client state is saved over time, before switching sessions, and on window closing
  • Check past events are saved to DbStore, both in new sessions and loaded sessions

Diff Detail

Repository
rK kazv
Branch
tusooa/stacked
Lint
No Lint Coverage
Unit
No Test Coverage
Build Status
Buildable 633
Build 1248: Invoke BuildbotBuildbot build #1874
Build 1247: arc lint + arc unit

Event Timeline

Harbormaster returned this revision to the author for changes because remote builds failed.Thu, Jun 18, 9:38 PM
Harbormaster failed remote builds in B633: Diff 976!

Implement session controller logic

Harbormaster returned this revision to the author for changes because remote builds failed.Sat, Jun 20, 9:53 AM
Harbormaster failed remote builds in B636: Diff 979!
Harbormaster returned this revision to the author for changes because remote builds failed.Mon, Jun 22, 9:36 PM
Harbormaster failed remote builds in B639: Diff 982!

Update qmls and fix most tests

Harbormaster returned this revision to the author for changes because remote builds failed.Tue, Jun 23, 11:45 PM
Harbormaster failed remote builds in B641: Diff 984!
tusooa edited the test plan for this revision. (Show Details)

Fix session switching and saving

Harbormaster returned this revision to the author for changes because remote builds failed.Wed, Jun 24, 10:08 AM
Harbormaster failed remote builds in B643: Diff 986!

Remove unused MatrixSdk::trigger()

Harbormaster returned this revision to the author for changes because remote builds failed.Wed, Jun 24, 11:58 AM
Harbormaster failed remote builds in B645: Diff 988!