famedly / hedwig

A Matrix Push Gateway written in Rust. It uses Firebase Cloud Messaging to push messages to Android and iOS devices.
GNU Affero General Public License v3.0
4 stars 1 forks source link

[FEATURE REQUEST] POST Unread Count to URL #154

Closed rokk4 closed 4 months ago

rokk4 commented 5 months ago

Feature Request: POST Unread Count to URL

As discussed with @nikzen: We would like to request a feature enhancement for Hedwig to send unread count information to a specified backend endpoint.

Description

To get rid of the matrix client running all the time in the background just to show the unread count, we need the capability to send the unread count information to our backend. Specifically, we need Hedwig to offer an option to set a URL (e.g., http://api.example.com/update-unread) where the following JSON payload will be sent:

{
  "mxid": "${mxid}",
  "count": "${unread count}"
}

Additional Requirements

nikzen commented 4 months ago

I will close it, as we will solve it different