-
Notifications
You must be signed in to change notification settings - Fork 169
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 connect on matrix #1206
Add connect on matrix #1206
Conversation
@@ -278,6 +289,7 @@ fun PersonProfileMoreDropdown( | |||
onBlockPersonClick: () -> Unit, | |||
onReportPersonClick: () -> Unit, | |||
onMessagePersonClick: () -> Unit, | |||
openMatrix: (() -> Unit)?, |
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.
Hrm.... not a fan of optional params, as they often result in places you don't catch them. Probably best would be
hasMatrixId: Boolean,
onOpenMatrixClick: () -> Unit
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.
Optional params have indeed been a footgun but this param is not optional. You are forced to pass null or a lambda. Not doing will result in a compile error. That would not be the case if I did openMatrix: (() -> Unit)? = null
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.
mmmk cool.
Add connect on matrix feature, this will open the relevant matrix client with the option to dm this user.
I designed the SVG icon of Matrix myself. So hereby I release the icon into the public domain
Edit:
Someone linked me a smaller icon, I am using that one now.