Return consistent version of muteTill (#3460)
This commit is contained in:
parent
31d02f5197
commit
1b6cebac22
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue