Skip to content

fix(invite): send welcome email when creating guest from share dialog#1566

Merged
skjnldsv merged 1 commit into
mainfrom
fix/guest-welcome-email
May 15, 2026
Merged

fix(invite): send welcome email when creating guest from share dialog#1566
skjnldsv merged 1 commit into
mainfrom
fix/guest-welcome-email

Conversation

@pringelmann
Copy link
Copy Markdown
Contributor

Summary

GuestForm sends sendInvite: false when opened from the Files share dialog. Intent (cc @leftybournes, this was set up in 0c42d5c) was to dedupe with ShareCreatedListener, which sends its own "X shared a file with you" mail after the share lands. Problem: the share only lands when the user clicks confirm on the SharingDetailsTab that opens after the guest form closes. If they close the sidebar or navigate away, the guest exists with no welcome mail and no password-reset link, so they can't log in at all.

Dropping the flag entirely. Backend defaults to sendInvite: true, so the welcome fires at creation regardless of integration. If a share follows, the listener still sends the contextualised share mail on top.

Both mails carry the same lostpassword token URL, so the duplicate Activate-account buttons land on the same setup flow. Net cost: two mails in the happy path. Net benefit: no more stranded guest accounts.

@leftybournes - flagging in case I'm missing context on the original dedup decision. The two mails are textually different so this isn't a literal duplicate, but happy to revisit if there was a UX concern I'm not seeing.

Backport

stable4.7, stable4.6, stable4.5

Signed-off-by: Peter Ringelmann <peter.ringelmann@nextcloud.com>
@pringelmann pringelmann self-assigned this May 13, 2026
@pringelmann pringelmann added bug Something isn't working 3. to review Waiting for reviews labels May 13, 2026
@pringelmann pringelmann added the regression Regression of a previous working feature label May 13, 2026
@skjnldsv skjnldsv merged commit 98dc5ee into main May 15, 2026
43 checks passed
@skjnldsv skjnldsv deleted the fix/guest-welcome-email branch May 15, 2026 07:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review Waiting for reviews bug Something isn't working regression Regression of a previous working feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants