Skip to content

Commit e191779

Browse files
committed
Remove compat for lichess mobile: don't send study messages in batches
1 parent bb2d179 commit e191779

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

src/main/scala/actor/RoomActor.scala

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -47,15 +47,10 @@ object RoomActor:
4747
None -> None
4848

4949
case ClientIn.VersionedBatch(msgs) =>
50-
if deps.req.isLichessMobile // BC, remove this in a month
51-
then
52-
msgs.toList.reverse.foreach: msg =>
53-
deps.clientIn(versionFor(state.isTroll, msg))
54-
else
55-
deps.clientIn:
56-
ClientIn.PayloadBatch:
57-
msgs.toList.reverse.map: msg =>
58-
versionFor(state.isTroll, msg).json
50+
deps.clientIn:
51+
ClientIn.PayloadBatch:
52+
msgs.toList.reverse.map: msg =>
53+
versionFor(state.isTroll, msg).json
5954
None -> None
6055

6156
case ClientIn.OnlyFor(endpoint, payload) =>

0 commit comments

Comments
 (0)