Return consistent version of muteTill (#3460)
This commit is contained in:
parent
31d02f5197
commit
1b6cebac22
2 changed files with 8 additions and 2 deletions
2
VERSION
2
VERSION
|
@ -1 +1 @@
|
|||
0.151.5
|
||||
0.151.6
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue