From 4d9e0af373b3a92d04498070c6fc8f6c197fc9c0 Mon Sep 17 00:00:00 2001 From: r Date: Sun, 2 Feb 2020 07:24:06 +0000 Subject: Add conversation muting --- service/service.go | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'service/service.go') diff --git a/service/service.go b/service/service.go index ab6261e..043191b 100644 --- a/service/service.go +++ b/service/service.go @@ -44,6 +44,8 @@ type Service interface { Follow(ctx context.Context, c *model.Client, id string) (err error) UnFollow(ctx context.Context, c *model.Client, id string) (err error) SaveSettings(ctx context.Context, c *model.Client, settings *model.Settings) (err error) + MuteConversation(ctx context.Context, c *model.Client, id string) (err error) + UnMuteConversation(ctx context.Context, c *model.Client, id string) (err error) } type service struct { @@ -848,3 +850,15 @@ func (svc *service) SaveSettings(ctx context.Context, c *model.Client, session.Settings = *settings return svc.sessionRepo.Add(session) } + +func (svc *service) MuteConversation(ctx context.Context, c *model.Client, + id string) (err error) { + _, err = c.MuteConversation(ctx, id) + return +} + +func (svc *service) UnMuteConversation(ctx context.Context, c *model.Client, + id string) (err error) { + _, err = c.UnmuteConversation(ctx, id) + return +} -- cgit v1.2.3