element-hq / element-hq/element-ios

Shields are not displayed properly for self-hosted servers

Open
#5,798 1 comment 0 reactions 0 assignees View on GitHub
A-E2EE A-Room O-Occasional S-Minor T-Defect
Dominant language
Swift
Stars
1.8k
Forks
544
PR merge metrics
PR metrics pending

Description

### Steps to reproduce

I have four verified friends:
* F, who self-host their homeserver
* J, who self host their homeserver as well
* Z, who has a matrix.org MxID
* M, who has a MxID from a EMS-hosted instance

I have verified each of them, and I have an encrypted DM room with each of them.
J and F have their own (different) home server, and so do I.

### Outcome

#### What did you expect?

I expected all the DM rooms to have a green shield in the avatar

#### What happened instead?

| Friend | Homeserver | Shield in the header | Shield in the persons list |
|-------|-------------|---------------------|--------------------------|
| F | Self-hosted |◼️ | ✅ |
| J | Self-hosted |◼️ | ✅ |
| Z | matrix.org | ✅ | ✅ |
| M | EMS hosted | ✅ | ✅ |

In Element Nightly on macOS the room headers display the shields properly.

#### Screenshots

![IMG_9291](https://user-images.githubusercontent.com/1688309/157674363-b0333042-045e-4a55-abd3-5bfbb5e2cf87.jpg)
![IMG_9292](https://user-images.githubusercontent.com/1688309/157674383-41e7707f-faec-4e5d-9a04-c554c72b7e8b.jpg)
![IMG_9293](https://user-images.githubusercontent.com/1688309/157674391-ab1755d4-7c73-4c9f-b019-e69227aac103.jpg)
![IMG_9294](https://user-images.githubusercontent.com/1688309/157674407-890a85d7-8b16-44fe-8457-723534cf2da1.jpg)
![IMG_9296](https://user-images.githubusercontent.com/1688309/157674431-f11d37de-d0a5-425a-bc1f-1a36a7fcbfcf.jpg)
![IMG_9295](https://user-images.githubusercontent.com/1688309/157674440-34002ef5-7a6f-4bfa-89e7-c366f796df8f.jpg)

### Your phone model

iPhone 11 Pro

### Operating system version

iOS 15.4

### Application version

1.8.5

### Homeserver

ergaster.org

### Will you send logs?

Yes

Contributor guide

Open the contributing guide

Research direction

No source files or tests are named. Reproduce the encrypted DM shield behavior on iOS using verified friends from self-hosted, matrix.org, and EMS-hosted homeservers, then trace the room-header shield rendering path. Done means verified encrypted DM rooms show the green shield consistently, including self-hosted servers.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.