status-go/protocol/pushnotificationserver
Pascal Precht 714c03c635 feat: introduce `CommunityAdminSettings` in `CommunityDescription`
This allows to store community admin settings that are meant to be propagated
to community members (as opposed to the already existing
`CommunitySettings` which are considered local to every account).

The first setting introduced as part of this commit is one that enables
community admins to configure whether or not members of the community
are allowed to pin messages in community channels.

Prior to this commit, this was not restricted at all on the protocol
level and only enforced by clients via UI (e.g. members don't see an
option to pin messages, although they could).

This config setting now ensures that:

1. If turned off, members cannot send a pin message
2. If turned off, pin messages from members are not handled/processed

This is needed by https://github.com/status-im/status-desktop/issues/5662
2022-05-18 09:58:11 +02:00
..
migrations feat: introduce `CommunityAdminSettings` in `CommunityDescription` 2022-05-18 09:58:11 +02:00
errors.go Polish up and address review feedback 2020-07-27 08:51:28 +02:00
gorush.go Add community notifications (#2160) 2021-03-31 18:23:45 +02:00
gorush_test.go Show correct text in case of mentions 2020-09-09 21:22:15 +02:00
persistence.go handle notifications at-most-once 2020-08-27 18:54:29 +02:00
persistence_test.go handle notifications at-most-once 2020-08-27 18:54:29 +02:00
server.go Rename MessageProcessor to MessageSender (#2264) 2021-06-23 17:13:48 +03:00
server_test.go Add tests for send notification & review feedback 2020-09-09 21:22:34 +02:00