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/logging.go | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'service/logging.go') diff --git a/service/logging.go b/service/logging.go index 3d2baba..f26abaf 100644 --- a/service/logging.go +++ b/service/logging.go @@ -212,3 +212,19 @@ func (s *ls) SaveSettings(ctx context.Context, c *model.Client, settings *model. }(time.Now()) return s.Service.SaveSettings(ctx, c, settings) } + +func (s *ls) MuteConversation(ctx context.Context, c *model.Client, id string) (err error) { + defer func(begin time.Time) { + s.logger.Printf("method=%v, id=%v, took=%v, err=%v\n", + "MuteConversation", id, time.Since(begin), err) + }(time.Now()) + return s.Service.MuteConversation(ctx, c, id) +} + +func (s *ls) UnMuteConversation(ctx context.Context, c *model.Client, id string) (err error) { + defer func(begin time.Time) { + s.logger.Printf("method=%v, id=%v, took=%v, err=%v\n", + "UnMuteConversation", id, time.Since(begin), err) + }(time.Now()) + return s.Service.UnMuteConversation(ctx, c, id) +} -- cgit v1.2.3