Broaden scope of "invalid" emoji entries

pull/4356/head
Johannes Marbach 1 day ago committed by GitHub
parent a42630f280
commit 2bfd09e6aa
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -86,7 +86,7 @@ this information today, however.
Malicious or buggy clients could cause undefined behavior on other clients by setting emoji counters Malicious or buggy clients could cause undefined behavior on other clients by setting emoji counters
to negative values or the maximum allowed value. To prevent this, clients SHOULD drop any emojis to negative values or the maximum allowed value. To prevent this, clients SHOULD drop any emojis
with a count below 0 from the list. When observing a count of 2^53-1 for an emoji, clients SHOULD with invalid entries from the list. When observing a count of 2^53-1 for an emoji, clients SHOULD
normalise the entire set of emoji by dividing all counts by two and rounding up. To prevent race normalise the entire set of emoji by dividing all counts by two and rounding up. To prevent race
conditions, both of these changes SHOULD only be applied when the client is updating the account conditions, both of these changes SHOULD only be applied when the client is updating the account
data event due to local emoji usage. data event due to local emoji usage.

Loading…
Cancel
Save