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) {