diff --git a/protocol/chat.go b/protocol/chat.go index 88a22128ef..81649a7fde 100644 --- a/protocol/chat.go +++ b/protocol/chat.go @@ -56,6 +56,7 @@ const ( MuteFor15MinsDuration = 15 * time.Minute MuteFor1HrsDuration = time.Hour MuteFor8HrsDuration = 8 * time.Hour + MuteFor24HrsDuration = 24 * time.Hour MuteFor1WeekDuration = 7 * 24 * time.Hour ) @@ -63,6 +64,7 @@ const ( MuteFor15Min requests.MutingVariation = iota + 1 MuteFor1Hr MuteFor8Hr + MuteFor24Hr MuteFor1Week MuteTillUnmuted MuteTill1Min diff --git a/protocol/messenger.go b/protocol/messenger.go index 5d8c85650d..86fcec7349 100644 --- a/protocol/messenger.go +++ b/protocol/messenger.go @@ -4393,6 +4393,8 @@ func (m *Messenger) MuteChat(request *requests.MuteChat) (time.Time, error) { MuteTill = time.Now().Add(MuteFor1HrsDuration) case MuteFor8Hr: MuteTill = time.Now().Add(MuteFor8HrsDuration) + case MuteFor24Hr: + MuteTill = time.Now().Add(MuteFor24HrsDuration) case MuteFor1Week: MuteTill = time.Now().Add(MuteFor1WeekDuration) default: diff --git a/protocol/messenger_communities.go b/protocol/messenger_communities.go index e9f199dd96..7be4736843 100644 --- a/protocol/messenger_communities.go +++ b/protocol/messenger_communities.go @@ -1206,6 +1206,8 @@ func (m *Messenger) MuteDuration(mutedType requests.MutingVariation) (time.Time, MuteTill = time.Now().Add(MuteFor1HrsDuration) case MuteFor8Hr: MuteTill = time.Now().Add(MuteFor8HrsDuration) + case MuteFor24Hr: + MuteTill = time.Now().Add(MuteFor24HrsDuration) case MuteFor1Week: MuteTill = time.Now().Add(MuteFor1WeekDuration) default: