This specific copypasta breaks the message field

(#3917) Bug Closed: Fixed Priority: P2 desktop messaging

Thread

Comment by Fullest
Fullest OP2 votes 3 replies
If you do take this I'd love to hear the explanation for this bug's behavior
Comment by Meisho Doto
Meisho Doto 1 vote 2 replies
Well... I already had a fix laying around for this... The root cause of this is because of how the emoji transformer works lets say we have bunch of emojis: :a: :b: :c: :d: :e: the emoji transformer parses the next token (:a:), transforms it and returns itself :b: :c: :d: :e:, and it takes the next token(:b:) and so on (basically a recursion type of thing) there is a harcoded limit on how many recursions there can be to prevent browsers from freezing because of infinite recursion errors and so that limit causes this bug to happen so i updated the code to not recursively transform but in a single pass (find all stuff that needs to change, update them)
Comment by Fullest
Fullest OP1 vote 1 reply
oh sick that makes a lot of sense. if you already have the fix I think you should just make the PR... I'm sure Hampus won't mind!