diff --git a/protocol/chat.go b/protocol/chat.go index fdb11f5030..ceb2e882e3 100644 --- a/protocol/chat.go +++ b/protocol/chat.go @@ -54,8 +54,9 @@ const ( const ( MuteFor1MinDuration = time.Minute MuteFor15MinsDuration = 15 * time.Minute - MuteFor1HrsDuration = time.Hour - MuteFor8HrsDuration = 8 * time.Hour + 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 652e614874..e7ee35694e 100644 --- a/protocol/messenger.go +++ b/protocol/messenger.go @@ -4699,6 +4699,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 8ddd55f14d..3ef2eda040 100644 --- a/protocol/messenger_communities.go +++ b/protocol/messenger_communities.go @@ -885,7 +885,9 @@ func (m *Messenger) MuteDuration(mutedType requests.MutingVariation) (time.Time, case MuteFor1Hr: MuteTill = time.Now().Add(MuteFor1HrsDuration) case MuteFor8Hr: - MuteTill = time.Now().Add(MuteFor8HrsDuration) + MuteTill = time.Now().Add(MuteFor8HrsDuration) + case MuteFor24Hr: + MuteTill = time.Now().Add(MuteFor24HrsDuration) case MuteFor1Week: MuteTill = time.Now().Add(MuteFor1WeekDuration) default: