diff options
author | Dessalines <tyhou13@gmx.com> | 2020-02-09 15:04:41 -0500 |
---|---|---|
committer | Dessalines <tyhou13@gmx.com> | 2020-02-09 15:04:41 -0500 |
commit | 9c8fe0379fea6d3994d72dc461665789e9855423 (patch) | |
tree | 34e41c77568f5f81d79377f311f7f99f0d31d9cf /server/src/websocket | |
parent | be539e335339e1db9704ee55563f16986df72cf4 (diff) |
Adding instant voting / vote animations. Fixes #526
Diffstat (limited to 'server/src/websocket')
-rw-r--r-- | server/src/websocket/server.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/server/src/websocket/server.rs b/server/src/websocket/server.rs index 003b886e..1cbcb34f 100644 --- a/server/src/websocket/server.rs +++ b/server/src/websocket/server.rs @@ -280,6 +280,9 @@ impl ChatServer { self.send_community_room_message(0, &post_sent_str, id); self.send_community_room_message(community_id, &post_sent_str, id); + // Send it to the post room + self.send_post_room_message(post_sent.post.id, &post_sent_str, id); + to_json_string(&user_operation, post) } |