QAuxiliary icon indicating copy to clipboard operation
QAuxiliary copied to clipboard

fix: DisableUtfControlCharacterInNickname

Open Allenyou1126 opened this issue 1 year ago • 2 comments

标题 / Title Here

优化将 RTLO、LTRO 等 UTF 控制字符替换为空格功能的实现

描述 / Description

将功能的实现改为 #1151 中 @EatHatsuneShallots 提及的方法。

仅进行了有限的测试。

修复或解决的问题 / Issues Fixed or Closed by This PR

检查列表 / Check List

  • [x] 我已经在预期的 QQ 或 TIM 版本上测试了这些更改,并确认它们能够正常工作,不会破坏任何东西(尽我所能)。 I have tested these changes on the expected version and confirmed that they work and don't break anything (as well as I can manage).
  • [ ] 我的改动不会导致本模块丢失对旧版 QQ 或 TIM 的支持。 My changes will not cause this module to lose support for older versions of QQ or TIM。
  • [x] 我已经合并了对后续工作无意义的提交,并确认它们不会对后续维护造成破坏。(必须) I have merged commits that are meaningless for follow-up work and confirmed that they will not cause damage to follow-up maintenance. (Required)

Allenyou1126 avatar Sep 01 '24 05:09 Allenyou1126

最好确保 TextView.getTransformationMethod() 返回的对象与原来的一样,这可以通过在 TextView.setTransformationMethod() 方法中直接 Hook 入参对象来实现(注意入参值为 null 的情况)

EatHatsuneShallots avatar Sep 06 '24 13:09 EatHatsuneShallots

最好确保 TextView.getTransformationMethod() 返回的对象与原来的一样,这可以通过在 TextView.setTransformationMethod() 方法中直接 Hook 入参对象来实现(注意入参值为 null 的情况)

ok,过些天我有空就再测试一下

Allenyou1126 avatar Sep 11 '24 12:09 Allenyou1126