* RPC for receiving messaging from remote backend
Added RPC receiveMessage, to be called by a conversation-owning backend
when a message is posted on a conversation containing a user from the
local domain.
* Add test for receive-message RPC
* Use originDomain in receive-message RPC
* Messaging RPC: make recipient map unqualified
* Only send remote messages to members
* Use DomainHeader synonym
* Add priority and transient fields to RemoteMessage
* Delete leftover TODOs
* Make origin user optional in Push type
This allows for remote origin users
* Follow changes to Push type in gundeck
This also merges some utility functions to send conversation events,
namely `pushEvent` and `pushJoinEvent`, into a single function
`pushConversationEvents`, which knows how to handle the case of a remote
originating user.
* Replace 'in' query with multiple parallel queries
* brig: follow Push type changes in gundeck
* gundeck: make origin field optional in Push
* Update CHANGELOG
* Use Quorum when filtering members
Co-authored-by: jschaul <jschaul@users.noreply.github.com>
* postRemoteToLocal: avoid long argument lists
This makes `postRemoteToLocal` take a single `RemoteMessage` argument, and
also refactors it to use a local definition for the inner function
pushing a single event.
The `RemoteMessage` type has been generalised to be able to hold either
an unqualified `ConvId` or a qualified one.
* Add push flag to RemoteMessage
* postRemoteToLocal: log if users are filtered out
Co-authored-by: jschaul <jschaul@users.noreply.github.com>