ma1uta / ma1sd

Federated Matrix Identity Server (formerly fork of kamax/mxisd)
GNU Affero General Public License v3.0
167 stars 55 forks source link

New invite not stored when there is an existing invite with the same address but different room ID #99

Open ghost opened 3 years ago

ghost commented 3 years ago

When there is an existing invite for the same address, it's not possible to store a new invite with a different room ID. Is this the expected behavior?

https://github.com/ma1uta/ma1sd/blob/ae5864cd91f7db57c3a99b7847c3c327980e74e8/src/main/java/io/kamax/mxisd/invitation/InvitationManager.java#L269-L281

^ It seems like storage.insertInvite(); won't be called if there's an existing invite for the same address. An invite for another room should be considered as a new invite.