Return consistent version of muteTill (#3460)

This commit is contained in:
Ibrahem Khalil 2023-05-15 18:12:26 +03:00 committed by GitHub
parent 31d02f5197
commit 1b6cebac22
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 2 deletions

View File

@ -1 +1 @@
0.151.5 0.151.6

View File

@ -4989,7 +4989,13 @@ func (m *Messenger) MuteChat(request *requests.MuteChat) (time.Time, error) {
return time.Time{}, err 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) { func (m *Messenger) MuteChatV2(muteParams *requests.MuteChat) (time.Time, error) {