Fix #207: Add support for PlainText events when tailing.#211
Conversation
- Added support for handling synchronous notice events. - Added some documentation for the use of cast_ref_unchecked.
|
Looks like mclient.rs changed when I ran |
Personal notes:DuckDuckGo search NoticeMessageEventContent.
DuckDuckGo search Matrix notice message. home-assistant/core/pull/108030#issue-2080783740:
Google search Matrix notice message. I have verified the cargo run -- --tail 20 --room '!fOZKtmbCJlBYsrJEag:matrix.org'Output:cargo run -- --tail 20 --room '!sNARMdEsFZERaQAJzl:matrix.org'Output:cargo run -- --tail 20 --room '!fOZKtmbCJlBYsrJEag:matrix.org' --output jsonOutput:cargo run -- --tail 20 --room '!sNARMdEsFZERaQAJzl:matrix.org' --output jsonOutput:After restoring cargo run -- --tail 20 --room '!sNARMdEsFZERaQAJzl:matrix.org' --output jsonOutput:cargo run -- --tail 20 --room '!fOZKtmbCJlBYsrJEag:matrix.org' --output jsonOutput:Nice |
|
Is there a reason you just closed my PR and then pasted my commits in your own name? It's rude. |
|
@kcexn Sorry, I am not accustomed to managing pull requests, I do not have much time to spend doing things perfect and wanted to merge quickly, with the JSON output working as you have broken it. Furthermore, in my opinion linking to this pull request that you were the author was looking good enough, in addition that it is not a very significant code change in terms of quantity. Next time I will use Co-authored-by. |
|
If it's broken something we can roll back the change and fix it. GitHub keeps track of contribution statistics even if you don't list me as a contributor on the landing page. I'm not claiming copyright over the work. I'm asking for credit. You could have just used GitHubs squash and merge option. |
|
I think it is better not to |
|
If you want I can add a commit to revert my commit, then add your commits on top of this revert commit, as your commits are not cryptographically signed. |
|
Okay. Revert the commit, then I'll reopen a pull request. |
|
No need to reopen a pull request, then no? I can add your commits on top of my revert commit without you opening a new pull request, no? |
|
You should revert the commit. Then reopen this pull request, then accept and merge this pull request. If you don't want the commit history from my fork, you can squash and merge instead. |
This reverts commit 2a77a09.
Personal notes:DuckDuckGo search git revert commit. The Stack Overflow answer 21615059: git revertOutput:git revert HEADOutput:git pushOutput: |
|
This looks good to you @kcexn? |
|
Yes. Thank you! I'll close the issue now if you haven't already. |
|
Thanks to both of you 🚀 👍 |
In #207 running
matrix-commander-rs --tail <N>was panicking when streaming events from unencrypted (public) rooms as the PlainText TimelineEvent is unsupported. #208 stops the--tailflag from panicking but doesn't add support for PlainText events. This PR adds:--tailflag.handle_originalsyncmessagelikeeventso that room notices appear in the tailed output.