From 1b6cebac22ded224876e8fc2c5ceb7d660716143 Mon Sep 17 00:00:00 2001 From: Ibrahem Khalil Date: Mon, 15 May 2023 18:12:26 +0300 Subject: [PATCH] Return consistent version of muteTill (#3460) --- VERSION | 2 +- protocol/messenger.go | 8 +++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/VERSION b/VERSION index e7ff62f88..fd53ae84e 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.151.5 +0.151.6 diff --git a/protocol/messenger.go b/protocol/messenger.go index e59eba506..ae2c9140c 100644 --- a/protocol/messenger.go +++ b/protocol/messenger.go @@ -4989,7 +4989,13 @@ func (m *Messenger) MuteChat(request *requests.MuteChat) (time.Time, error) { return time.Time{}, err } - return m.muteChat(chat, contact, MuteTill) + muteTillTimeRemoveMs, err := time.Parse("2006-01-02T15:04:05Z", MuteTill.Format("2006-01-02T15:04:05Z")) + + if err != nil { + return time.Time{}, err + } + + return m.muteChat(chat, contact, muteTillTimeRemoveMs) } func (m *Messenger) MuteChatV2(muteParams *requests.MuteChat) (time.Time, error) {