🌐 Federated invitation handling 💌 - API
- Overview at https://github.com/nextcloud/spreed/issues/11229
- [x]
FederationController->acceptShare()could return to user, who accepted a share, a local room (with token. e.t.c), so it could be reused by clients to join room on click => https://github.com/nextcloud/spreed/pull/11459 - [ ] Allow
all users / only moderators / only specific groupson this server to invite users to Talk conversations fromall other servers / only trusted servers- discuss? https://github.com/nextcloud/spreed/pull/11503 - [x] Return conversation name in getInvitation endpoint https://github.com/nextcloud/spreed/pull/11505
- [x] Prevent accepting the same invitation multiple times https://github.com/nextcloud/spreed/pull/11513
- [x] Inviting the same user should not result in a new system message each time https://github.com/nextcloud/spreed/pull/11513
- [x] Split subject and message for push notifications https://github.com/nextcloud/spreed/pull/11513
- [x] The name (rich object) of the person which shared the conversation is missing on the invitation endpoint https://github.com/nextcloud/spreed/pull/11581
- [ ] Boolean - Allow incoming
- [ ] Boolean - Allow outgoing
- [ ] Array - List of groups allowed to federate
- [ ] Boolean - Filter federation servers by trusted server list of server
https://github.com/nextcloud/spreed/blob/2bf22e12d217572fb25d071b87a74c785d14b56a/lib/Model/Invitation.php#L72-L83
The endpoint to get federation invitation does not include the conversation name that the user was invited to, but the notification does include that in the rich parameters:
I assume we should add that to the invitation endpoint as well?!
Same invitation can be accepted multiple times:
Inviting the same user does add a new system message each time (although no push notification):
Please split subject and message:
https://github.com/nextcloud/spreed/blob/1ae1017d444731bc911939af52a70014a8d0ac20/lib/Notification/Notifier.php#L466-L467
As we did for recording:
https://github.com/nextcloud/spreed/blob/1ae1017d444731bc911939af52a70014a8d0ac20/lib/Notification/Notifier.php#L359-L368
So push notifications can correctly show a subject and a message
Please split subject and message
I think we should at least have the inviter in the subject
Suggestion:
{user1} invited you to a federated conversation
{user1} invited you to join {roomName} on {remoteServer}
Sounds good to me 👍
- Added to https://github.com/nextcloud/spreed/pull/11513
The name of the person which shared the conversation is missing on the invitation endpoint, but it is available in the push notification. Can we add it to the endpoint as well?
The name of the person which shared the conversation is missing on the invitation endpoint, but it is available in the push notification. Can we add it to the endpoint as well?
same for room name
same for room name
Should be fixed with https://github.com/nextcloud/spreed/pull/11505 already
Inviting the same user should not result in a new system message each time
- -> Fixed in https://github.com/nextcloud/spreed/pull/11513
Assuming all is done for now