element-hq / element-hq/element-ios

Wrong MXRoomSummary properties from `MXSession.roomSummary(withRoomId: String)`

Open
#5,777 0 comments 0 reactions 0 assignees View on GitHub
A-SDK O-Occasional S-Minor T-Defect
Dominant language
Swift
Stars
1.8k
Forks
544
PR merge metrics
PR metrics pending

Description

### Steps to reproduce

1. Leave a room or a space

### Outcome

#### What did you expect?

After leaving a room `MXSession.roomSummary(withRoomId: summary.roomId)` to return `nil` or to return a `MXRoomSummary` instance with `membership` set to `.left`.

#### What happened instead?

After leaving a room `MXSession.roomSummary(withRoomId: summary.roomId)` returns a `MXRoomSummary` instance but `MXSession.room(withRoomId: summary.roomId)` returns `nil`. Note that the `membership` property is still set to `.join` while `membershipTransitionState` is set to`.left`.

### Your phone model

_No response_

### Operating system version

_No response_

### Application version

_No response_

### Homeserver

_No response_

### Will you send logs?

No

Contributor guide

Open the contributing guide

Research direction

Start by tracing MXSession.roomSummary(withRoomId:) and MXSession.room(withRoomId:) for a room after it is left. Compare the returned MXRoomSummary membership with membershipTransitionState and the room lookup result. Done means the summary is nil or reports .left consistently with the expected post-leave behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
swift
Domain
mobile
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.