# Implement mute chat in the core

**URL:** <https://forum.delta.chat/t/implement-mute-chat-in-the-core/729>\
**Category:** Feature Proposal\
**Created:** [January 6, 2020, 8:13pm UTC](https://forum.delta.chat/t/implement-mute-chat-in-the-core/729 "2020-01-06T20:13:21Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Simon](https://forum.delta.chat/user_avatar/forum.delta.chat/simon/32/287_2.png) [@Simon](https://forum.delta.chat/u/Simon)\
**Post date:** [January 6, 2020, 8:13pm UTC](https://forum.delta.chat/t/implement-mute-chat-in-the-core/729/1 "2020-01-06T20:13:21Z")

</div>

Implement mute chat in the core, because we need it on all platforms.

It wouldn’t involve much work on the core site:

- an extra db column in the chats table called muted until:
  - **0** not muted
  - **-1** muted forever
  - **\>0** interpreted as unixtimestamp

- and two functions
  - chat.isMuted() -\> `bool`
  - chat.getMuteDuration() -\> `enum[notMuted, forever, until<timestamp>]`

What do you think?  
I would try to implement this if you agree that it is a good idea.

---

<div class="post-metadata">

**Author:** ![Simon](https://forum.delta.chat/user_avatar/forum.delta.chat/simon/32/287_2.png) [@Simon](https://forum.delta.chat/u/Simon)\
**Post date:** [January 6, 2020, 8:36pm UTC](https://forum.delta.chat/t/implement-mute-chat-in-the-core/729/2 "2020-01-06T20:36:33Z")

</div>

Some log from the irc discussion about this:

```auto
21:22:09 @r10s | and a 1.0 can live without this option (ios also does :)                                                                         
21:23:32 @flub | for db, one could use NULL instead of 0 for not muted. not sure what's the nicest is there                                        
21:23:34 @r10s | tbh, i thought at some point that it may makse sense to sync this state - however, meanwhile i think it is a feature to be        
                        | informed on a chat on android but not on desktop etc. - so i would not start syncing them. so, the overall use is pretty small.         
21:24:24 @r10s | on android, we just do sth. saveSystemPref("mute"+id, true) - i think this is pretty easy to implement on all systems             
21:34:20 treefit | but its not stored in the backup and desktop has 2 process which makes local prefences a little bit trickier                      
21:34:28 treefit | or less pretty

```

---

<div class="post-metadata">

**Author:** ![Simon](https://forum.delta.chat/user_avatar/forum.delta.chat/simon/32/287_2.png) [@Simon](https://forum.delta.chat/u/Simon)\
**Post date:** [January 7, 2020, 7:19pm UTC](https://forum.delta.chat/t/implement-mute-chat-in-the-core/729/3 "2020-01-07T19:19:42Z")

</div>

> <https://github.com/deltachat/deltachat-core-rust/pull/1143>

---

<div class="post-metadata">

**Author:** ![r10s](https://forum.delta.chat/user_avatar/forum.delta.chat/r10s/32/1513_2.png) [@r10s](https://forum.delta.chat/u/r10s)\
**Post date:** [October 6, 2026, 3:00pm UTC](https://forum.delta.chat/t/implement-mute-chat-in-the-core/729/4 "2026-10-06T15:00:07Z")

</div>


