-
-
Notifications
You must be signed in to change notification settings - Fork 75
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for join rule handling #270
base: main
Are you sure you want to change the base?
Conversation
somehow, |
Probably missing the event handler in the matrix connector |
I implemented that, but it doesn't even get there. Seems There should be some kind of debug output mentioning the event type, even if there is no handler, right? This is all I get:
|
Portal is in the central bridge module, it only gets events that the matrix connector registers handlers for |
then why is |
oh... |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like it should work
@@ -688,6 +688,13 @@ type PowerLevelHandlingNetworkAPI interface { | |||
HandleMatrixPowerLevels(ctx context.Context, msg *MatrixPowerLevelChange) (bool, error) | |||
} | |||
|
|||
type MatrixJoinRule MatrixRoomMeta[*event.JoinRulesEventContent] | |||
|
|||
type JoinRulesHandlingNetworkAPI interface { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
type JoinRulesHandlingNetworkAPI interface { | |
type JoinRuleHandlingNetworkAPI interface { |
@@ -1333,6 +1335,46 @@ func (portal *Portal) handleMatrixPowerLevels( | |||
} | |||
} | |||
|
|||
func (portal *Portal) handleMatrixJoinRules( | |||
ctx context.Context, | |||
sender *UserLogin, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wonder if this whole function should just be replaced with another case in handleMatrixRoomMeta
🤔
No description provided.