refactor: reaction

This commit is contained in:
zerosoul
2022-05-27 16:46:57 +08:00
parent 84f9998277
commit d9d3cb661e
8 changed files with 114 additions and 19 deletions
+7 -1
View File
@@ -118,8 +118,14 @@ const handler = (data, dispatch, currState) => {
switch (type) {
case "like":
{
// rid reaction's mid
dispatch(
toggleReactionMessage({ from_uid, mid: detailMid, action })
toggleReactionMessage({
from_uid,
mid: detailMid,
rid: mid,
action,
})
);
}