-
Notifications
You must be signed in to change notification settings - Fork 73
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
CASEMAPPING
Support
#668
CASEMAPPING
Support
#668
Conversation
25d49cd
to
39d7088
Compare
For now, using incoming messages to resolve the case of the nickname of a user (used in the sidebar). In testing it performs better than a more complicated
|
@andymandias I took the liberty of fixing some merge conflicts (I've been merging your branch to help test!) caused by my merges. I'm sure you can resolve the conflicts yourself, but in case you want a relatively quick patch: |
6e5d683
to
cbecc00
Compare
Thanks for the reference! Appreciate all the testing you've been doing, it's been invaluable! 🙏 |
21bcc86
to
4fcc53d
Compare
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.
LGTM! It's a big diff but that mostly comes down to newtyping channel / query / target strings.
It's nice that change enables us to layer in case mapping so easily. Thanks for tackling this!
data/src/buffer.rs
Outdated
match self { | ||
Self::Channel(_, channel) => Some(channel), | ||
Self::Server(_) | Self::Query(_, _) => None, | ||
} | ||
} | ||
|
||
pub fn target(&self) -> Option<String> { | ||
pub fn target(&self) -> Option<target::Target> { |
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.
Nit: redundant, just import Target directly
Same with elsewhere in the PR
4fcc53d
to
246ab64
Compare
Uses the
CASEMAPPING
RPL_ISUPPORT
parameter to normalize targets (user/channel) names, then uses normalized targets for routing. Still undergoing testing and open to be refactored.Known issue(s):
Guest59
then it may appear in the sidebar asguest59
.