only send study likes to liking SRI

to reduce messages on busy broadcasts
deepcrayonfish^2
Thibault Duplessis 2021-11-27 07:54:51 +01:00
parent e6b19993ee
commit f0235c8d3b
1 changed files with 2 additions and 1 deletions

View File

@ -304,7 +304,8 @@ final private class StudySocket(
"w" -> who "w" -> who
) )
) )
def setLiking(liking: Study.Liking, who: Who) = notify("liking", Json.obj("l" -> liking, "w" -> who)) def setLiking(liking: Study.Liking, who: Who) =
notifySri(who.sri, "liking", Json.obj("l" -> liking, "w" -> who))
def setShapes(pos: Position.Ref, shapes: Shapes, who: Who) = def setShapes(pos: Position.Ref, shapes: Shapes, who: Who) =
version( version(
"shapes", "shapes",