feat: add native share support for space invites #199

Closed
sakshamjain wants to merge 4 commits from sakshamjain/flotilla:feat/space-invite-share into dev

4 Commits

Author SHA1 Message Date
sakshamjain dcf332fbe4 Merge remote-tracking branch 'upstream/dev' into feat/space-invite-share 2026-04-14 23:24:17 +05:30
sakshamjain 9fa1375435 fix: handle unsupported Share API gracefully 2026-04-14 23:05:49 +05:30
bhavishy2801 132c7f031b fix: remove deleted rooms from space navigation after refresh
## Summary

This PR fixes a bug where deleting a room succeeded on the relay, but the room could still appear in space navigation (including after refresh).

Fixes #194.

## Root Cause

Room list derivation did not consistently treat delete events as authoritative in edge cases:
- Delete timestamp aggregation could involve an undefined prior value.
- Room meta events with the same second-level timestamp as a delete event were still considered active.

## Changes

- Updated room delete timestamp aggregation logic to handle first delete event safely.
- Updated room filtering condition so a room is excluded when its meta timestamp is less than or equal to the delete timestamp.
- This ensures deleted rooms are not shown in navigation immediately or after reload.

## Validation

- `pnpm run check` passed.
- `pnpm run lint` passed.

## Testing

- [x] In a NIP-29 space, create a temporary room.
- [x] Delete the room from room details.
- [x] Confirm it disappears from navigation immediately.
- [x] Hard refresh and confirm it does not reappear.
- [x] Reopen app/session and confirm it remains absent.
- [x] Repeat by creating/deleting another room quickly (same-minute timestamp edge case).
2026-04-14 15:43:49 +00:00
sakshamjain cdeb7afcae feat: add native share support for space invites 2026-04-14 19:27:23 +05:30