-
Notifications
You must be signed in to change notification settings - Fork 122
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
Make custom text replaces work without replace emoji being enabled #242
Make custom text replaces work without replace emoji being enabled #242
Conversation
That would make people who don't like text replaces angry I guess :D |
Then don't have any text replaces lol |
I don't think you really need to change lib_ui's API. It would make more sense to replace the array used in setInstantReplaces when the option changes than creating a new weird special-case API. |
I don't quite understand what you wanted to say |
When you change the replace emoji option it applies instantly without having to reopen kotatogram |
The call to setInstantReplaces should have effect instantly as well |
I don't get what you're saying |
Example of what I mean:
|
But I still don't think having text-only replaces always is a good idea, I'm pretty sure that would make people angry |
I want https://github.com/kotatogram/kotatogram-desktop/wiki/Custom-text-replaces to work even if Replace emoji is disabled, if you don't want them you can always remove it from the config |
Ah. I thought you want these replaces: https://github.com/kotatogram/lib_ui/blob/master/ui/widgets/input_fields.cpp#L917-L924 It seems to me that the proper way would be to have a setInstantReplaces that accepts a rpl::producer then. That would allow the set to be changed at any time in runtime. |
12d9db7
to
22d387f
Compare
22d387f
to
5df6089
Compare
I will return to it after next stable release. |
Depends on kotatogram/lib_ui#11