element-hq / element-hq/element-ios

Client does not respect Message Retention

Open
#5,201 2 comments 0 reactions 0 assignees View on GitHub
A-Timeline O-Frequent S-Major T-Enhancement
Dominant language
Swift
Stars
1.8k
Forks
544
PR merge metrics
PR metrics pending

Description

### Steps to reproduce

1. Configure the `retention` section for your Matrix Home Server.
2. Write messages
3. After the `retention.default_policy.max_lifetime` is exceeded the Messages are still present

In my case the server has the following configuration set for retention:

```yaml
retention:
enabled: true
default_policy:
min_lifetime: 1d
max_lifetime: 30d
allowed_lifetime_min: 1d
allowed_lifetime_max: 180d
```

### Outcome

#### What did you expect?

Client respects the default retention settings from the Home Server.

#### What happened instead?

Settings seems to be ignored.

### Your phone model

iPhone 12 Pro

### Operating system version

iOS 15.1.1

### Application version

1.6.8

### Homeserver

matrix.systemli.org

### Will you send logs?

No

Contributor guide

Open the contributing guide

Research direction

Start by reproducing this in the iOS app with a Matrix homeserver configured with retention.enabled and default_policy.max_lifetime, then inspect how the client handles messages after that lifetime expires. Done means messages are no longer shown once the homeserver's retention policy removes them; the issue names no source files or tests to begin from.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.