-
-
Notifications
You must be signed in to change notification settings - Fork 813
Sort muted rooms to the bottom of their section of the room list #10592
Changes from all commits
b937438
5292e47
07606b1
668cf8e
6450a73
94ed2a6
4352b46
1b095d3
3ed9133
acb7606
17c72fb
e638e15
cd00719
625e286
b8cb050
86194ab
e44f8be
b92f410
a4a05d2
4028131
f5faa5f
097b81b
1c81d6f
652a41f
84ea40f
b2e9281
bbb19f5
6a15a48
33a32f6
bfb9ed6
6eb155b
c418923
0b9997c
237b4ca
43f3316
ca05e61
8654bea
30be86f
947f994
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -48,6 +48,7 @@ function createSyncAction(matrixClient: MatrixClient, state: string, prevState: | |
| * @property {MatrixEvent} event the MatrixEvent that triggered the dispatch. | ||
| * @property {string} event_type the type of the MatrixEvent, e.g. "m.direct". | ||
| * @property {Object} event_content the content of the MatrixEvent. | ||
| * @property {MatrixEvent} previousEvent the previous account data event of the same type, if present | ||
| */ | ||
|
|
||
| /** | ||
|
|
@@ -56,14 +57,20 @@ function createSyncAction(matrixClient: MatrixClient, state: string, prevState: | |
| * | ||
| * @param {MatrixClient} matrixClient the matrix client. | ||
| * @param {MatrixEvent} accountDataEvent the account data event. | ||
| * @param {MatrixEvent | undefined} previousAccountDataEvent the previous account data event of the same type, if present | ||
| * @returns {AccountDataAction} an action of type MatrixActions.accountData. | ||
| */ | ||
| function createAccountDataAction(matrixClient: MatrixClient, accountDataEvent: MatrixEvent): ActionPayload { | ||
| function createAccountDataAction( | ||
| matrixClient: MatrixClient, | ||
| accountDataEvent: MatrixEvent, | ||
| previousAccountDataEvent?: MatrixEvent, | ||
| ): ActionPayload { | ||
| return { | ||
| action: "MatrixActions.accountData", | ||
| event: accountDataEvent, | ||
| event_type: accountDataEvent.getType(), | ||
| event_content: accountDataEvent.getContent(), | ||
| previousEvent: previousAccountDataEvent, | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. add this to the definition of
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It feels a bit asymmetric that we add the type and content of
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't really like the destructuring in the first place as the
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. oh yes, I'd failed to spot the presence of |
||
| }; | ||
| } | ||
|
|
||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.