postmoogle/bot
Slavi Pantaleev 61cc9b21c5 Only auto-join rooms when invited by allowed users
Previously, anyone (even across federation) could invite you to a
room and the bot would join. It may not have provided a useful purpose,
but it still joined all rooms it was invited to.

We now only join rooms when we're invited by a person who is actually
allowed to use the bot.

Fixes https://gitlab.com/etke.cc/postmoogle/-/issues/17
2022-08-31 15:54:56 +03:00
..
access.go diff bot and room settings 2022-08-30 14:37:19 +03:00
bot.go adjust initBotUsers() 2022-08-30 18:29:16 +03:00
command.go Merge branch 'improve-help-wording' into 'main' 2022-08-30 16:43:02 +00:00
command_admin.go users adjustments 2022-08-30 15:43:06 +03:00
command_owner.go rename options, rename settings types 2022-08-30 14:45:07 +03:00
context.go refactor to context, remove sentry spans 2022-08-25 22:31:12 +03:00
data.go rename account data keys, rearrange code 2022-08-30 14:42:07 +03:00
email.go rename options, rename settings types 2022-08-30 14:45:07 +03:00
message.go proposed changes 2022-08-27 21:59:58 +03:00
mutext.go add per-room mutex, possibly fixes #8 2022-08-27 22:10:22 +03:00
settings_bot.go fix botSettings.Users() 2022-08-30 18:35:10 +03:00
settings_room.go rename options, rename settings types 2022-08-30 14:45:07 +03:00
sync.go Only auto-join rooms when invited by allowed users 2022-08-31 15:54:56 +03:00