LibertyDSNP / spec

The DSNP Spec and Website
https://spec.dsnp.org
Other
31 stars 3 forks source link

Reaction retractions for DIP-149 #173

Closed shannonwells closed 2 years ago

shannonwells commented 2 years ago

Problem

Specify #149 Reaction Retraction

with @mehtaishita

Solution

Somewhat of a different solution than proposed:

Have you ever commented, "I wish I could ❤️ x 1000 this post" ? This spec change allows for that.

Add an "apply" field to a Reaction. The "apply" field has a numerical value, which is an unsigned, 8-bit integer, indicating whether to apply emoji and how "strong" of a reaction it is.

If the value is 0, the reaction is retracted. If the value is N > 0, then the reaction is applied, and its "strength" is N. Using a non-zero, positive number to indicate strength opens up more uses for the Reaction message type besides a single emoji, such as

Change summary: