chore: remove state events both in imp and preview events list

This commit is contained in:
td 2024-02-20 06:54:11 +05:30
parent 5220f2d127
commit 3fba9a55b3
No known key found for this signature in database
GPG Key ID: 62A30523D4D6CE28
1 changed files with 12 additions and 2 deletions

View File

@ -161,6 +161,12 @@ class Client extends MatrixApi {
Set<KeyVerificationMethod>? verificationMethods,
http.Client? httpClient,
Set<String>? importantStateEvents,
/// You probably don't want to add state events which are also
/// in important state events to this list, or get ready to face
/// only having one event of that particular type in preLoad because
/// previewEvents are stored with stateKey '' not the actual state key
/// of your state event
Set<String>? roomPreviewLastEvents,
this.pinUnreadRooms = false,
this.pinInvitedRooms = true,
@ -216,8 +222,12 @@ class Client extends MatrixApi {
EventTypes.CallAnswer,
EventTypes.CallReject,
EventTypes.CallHangup,
EventTypes.GroupCallPrefix,
EventTypes.GroupCallMemberPrefix,
/// hack because having them both in important events and roomPreivew
/// makes the statekey '' which means you can only have one event of that
/// type
// EventTypes.GroupCallPrefix,
// EventTypes.GroupCallMemberPrefix,
]);
// register all the default commands