pushbits / server

A simple server for push notifications via Matrix (and a minimalistic alternative to Pushover and Gotify) 🚀📯
https://www.pushbits.io
ISC License
314 stars 18 forks source link

Validate room mappings on startup #4

Closed eikendev closed 3 years ago

eikendev commented 4 years ago

Currently, the server takes that whatever it reads from the database as given. However, some entries could have changed over time while the server was offline, or rendered obsolete for another reason.

For instance, a user could have left the room for some application. The server should detect this, and either

eikendev commented 4 years ago

Some interesting commands from the library are

eikendev commented 3 years ago

JoinedMembers() can be used to retrieve a list of users in a room.

eikendev commented 3 years ago

Fixed in 2e2326843fe515a30deeec1117273cadd6df0d5d.