From 253b0b4e9e1f3bfa3e0d4843fec510e6401e445f Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Tue, 24 Sep 2019 12:58:40 +0300 Subject: Fix service activity --- src/main/java/com/juick/server/api/SystemActivity.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/java/com/juick/server/api/SystemActivity.java b/src/main/java/com/juick/server/api/SystemActivity.java index 162374d1..5120049a 100644 --- a/src/main/java/com/juick/server/api/SystemActivity.java +++ b/src/main/java/com/juick/server/api/SystemActivity.java @@ -3,6 +3,7 @@ package com.juick.server.api; import com.juick.Message; import com.juick.User; +import java.util.Collections; import java.util.List; public class SystemActivity { @@ -28,8 +29,10 @@ public class SystemActivity { var read = new SystemActivity(); read.setType(ActivityType.message); read.setFrom(from); + read.setTo(Collections.emptyList()); var msg = new Message(); msg.setMid(message.getMid()); + msg.setUser(from); msg.setService(true); msg.setUnread(false); read.setMessage(msg); -- cgit v1.2.3