Skip to content

Commit 42a24a5

Browse files
committed
TW-2165: Add adr for this ticket
1 parent 2db7f0b commit 42a24a5

File tree

1 file changed

+45
-0
lines changed

1 file changed

+45
-0
lines changed
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
# 5. Support store members in hive
2+
3+
Date: 2024-12-23
4+
5+
## Status
6+
7+
Accepted
8+
9+
- Issue: [#2165](https://github.com/linagora/twake-on-matrix/issues/2165)
10+
11+
## Context
12+
13+
- Not all of the members are displayed in the drop-down list
14+
- The members only store in the memory, so when the user refreshes the page, the members are lost.
15+
16+
## Decision
17+
18+
- Store the members in the hive to keep the members when the user refreshes the page.
19+
- Add some properties to request the members from the server.
20+
21+
```dart
22+
23+
Future<List<User>> requestParticipantsFromServer({
24+
List<Membership> membershipFilter = displayMembershipsFilter,
25+
bool suppressWarning = false,
26+
bool cache = true,
27+
String? at,
28+
Membership? membership,
29+
Membership? notMembership,
30+
}) {}
31+
32+
```
33+
34+
- `at`: The point in time (pagination token) to return members for in the room.
35+
This token can be obtained from a prev_batch token returned for each room by the sync API.
36+
Defaults to the current state of the room, as determined by the server.
37+
38+
- `membership`: The kind of membership to filter for. Defaults to no filtering if unspecified.
39+
When specified alongside `not_membership`, the two parameters create an ‘or’ condition: either the membership is the same as `membership` or is not the same as `not_membership`.
40+
41+
- `notMembership`: The kind of membership to exclude from the results. Defaults to no filtering if unspecified.
42+
43+
## Consequences
44+
45+
- The members are stored in the hive, so the members are not lost when the user refreshes the page.

0 commit comments

Comments
 (0)