From 8ec104cb762f58e83fde262ee25c23ddf49730bf Mon Sep 17 00:00:00 2001 From: Dessalines Date: Fri, 31 Jan 2020 22:34:08 -0500 Subject: Mostly done eliminating recurring fetches. --- server/src/websocket/server.rs | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'server') diff --git a/server/src/websocket/server.rs b/server/src/websocket/server.rs index 9b53f21d..1fbe4437 100644 --- a/server/src/websocket/server.rs +++ b/server/src/websocket/server.rs @@ -94,12 +94,6 @@ pub struct ChatServer { db: Pool>, } -// TODO show online users for communities too -// TODO GetPosts is the community / front page join. -// What is sent: New posts, post edits, post removes, post likes, community edits, community mod adds. Notifs for new posts? -// GetPost is the PostJoin, LeavePost is the leave -// What is sent: New comments, comment edits, comment likes -// UserJoin is the user join, a disconnect should remove you from all the scopes impl ChatServer { pub fn startup(db: Pool>) -> ChatServer { ChatServer { @@ -501,7 +495,7 @@ fn parse_json_message(chat: &mut ChatServer, msg: StandardMessage) -> Result Result