-
-
Notifications
You must be signed in to change notification settings - Fork 422
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
Support Matrix Notice Message Types #460
Conversation
Codecov Report
@@ Coverage Diff @@
## master #460 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 97 97
Lines 12574 12585 +11
Branches 2134 2136 +2
=========================================
+ Hits 12574 12585 +11
Continue to review full report at Codecov.
|
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.
Apart from below comment, i.e. used correctly, it works great for me.
I looked back into this and I do provide a warning. I noticed that you're using It's a bit of a grey area to change this specific check from a |
Yes, I saw the warning in the code and wondered why it wasn't triggered. I tried with one Maybe you can see why I am confused: The error says I provided no valid matrix URL which makes it sound like it's quoted wrong or uses illegal characters etc when actually the cause is known to be the invalid msgtype, it just won't tell you unless you known you gotta ask. From a UX perspective that should printed right from the start and spare everyone a lot of headache. |
I agree; it is confusing. What I'll do is merge this code since it achieves what it was intended to do. But I created a new story to address this very concern you have (and be more wide-spread about it and make sure i get it everywhere). 👍 |
Description:
Related issue (if applicable): #458
The ability to add
?msgtype=notice
to thematrix://
URL and create am.notice
instead of the defaultm.text
.The only supported types you can specify on the new
msgtype
enhancement istext
ornotice
. By defaulttext
is implied, so there should be no visible changes to existing users already leveraging this plugin.Checklist
flake8
)Testing
Anyone can help test this source code as follows: