Block a user
Follow-up issues for PR #105
Fix: issue #112 follow-ups — OTR strip, presence UAF, OMEMO load
fix(ui): reserve pad height per message to prevent multi-line clip and scroll desync
There are guarantees that messages are null-terminated, right?
fix(ui): reserve pad height per message to prevent multi-line clip and scroll desync
We might also use MIN(1, ...) instead, but this variant is also fine.
Fix: issue #112 follow-ups — OTR strip, presence UAF, OMEMO load
That does not appear as an appropriate solution. In debug mode it would crash the app, while in prod it would be ignored. Both ways introduce additional point of failure, further discussion is needed.
Fix: issue #112 follow-ups — OTR strip, presence UAF, OMEMO load
The comment explains the nature of change, which is a known antipattern.
Fix: issue #112 follow-ups — OTR strip, presence UAF, OMEMO load
g_assert usage should be discussed.
Fix: issue #112 follow-ups — OTR strip, presence UAF, OMEMO load
Why is it even defined out of loop scope? We can move it inside of the for body for readability.