element-hq / element-hq/element-ios

App always opens in home view after being on background for a while, forgets most recent chat

Open
#4,249 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Swift
Stars
1.8k
Forks
544
PR merge metrics
PR metrics pending

Description

**Describe the bug**
Having the iOS app be inactive (i.e. on background) for more than a couple minutes results in reverting to the home screen, rather than staying in the most recently used chat. This doesn't seem to be expected behavior, so flagging this as a bug.

**To Reproduce**
Steps to reproduce the behavior:
1. Open app
2. Navigate into a chat
3. Return to iOS home screen (app overview) and wait 5 minutes or longer
4. Open Element app again and look at home screen (i.e. the chat and room overview) instead of immediately seeing the most recent chat.

**Expected behavior**
The app should always open the most recent chat.

**Desktop (please complete the following information):**
- OS: [e.g. iOS]
- Browser [e.g. chrome, safari]
- Version [e.g. 22]

**Smartphone (please complete the following information):**
- Device: iPhoneSE
- OS: iOS 14.4.2
- Element 1.2.7

**Additional context**
For some reason, sometimes it seems to retain the past state and stay in the recent chat. Most of the time it doesn't.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.