From 38fa7969f95f49f20074ad8b982d8d92923071ad Mon Sep 17 00:00:00 2001 From: Dessalines Date: Fri, 5 Apr 2019 12:14:54 -0700 Subject: Adding a front page / fetching subscribed forums. - Adding subscribed to post view. Fixes #25 --- ui/src/services/WebSocketService.ts | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'ui/src/services/WebSocketService.ts') diff --git a/ui/src/services/WebSocketService.ts b/ui/src/services/WebSocketService.ts index c8cc9557..79f6750a 100644 --- a/ui/src/services/WebSocketService.ts +++ b/ui/src/services/WebSocketService.ts @@ -52,6 +52,11 @@ export class WebSocketService { this.subject.next(this.wsSendWrapper(UserOperation.ListCommunities, data)); } + public getFollowedCommunities() { + let data = {auth: UserService.Instance.auth }; + this.subject.next(this.wsSendWrapper(UserOperation.GetFollowedCommunities, data)); + } + public listCategories() { this.subject.next(this.wsSendWrapper(UserOperation.ListCategories, undefined)); } -- cgit v1.2.3