Skip to content

Entering 2FA prompt when deleting all messages can be annoying #621

Description

@fluxbug-flutter

Steps to reproduce

  1. Go to a channel you want to delete all messages from
  2. Long press the channel
  3. Scroll down and select 'Delete My Messages'
  4. Tap the button confirming you want to 'Delete My Messages'
  5. Switch apps over to your 2FA app to grab the code for the 2FA prompt
  6. Switch back to Fluxer

Expected behaviour

Read actual behavior first for context. I had to explain this one this way because it effectively boils down to: I expected things to not do unexpected things.

  • I expected the 2FA modal to be positioned near the center of the screen by default, instead of rising from the bottom like a drawer menu.
  • I expected the keyboard to stay up after switching between apps, thus not causing an unexpected repositioning of the on-screen modal.
  • I expected the text field used in the 2FA modal to allow for input of only digits.

Actual behaviour

After step 4, Fluxer brings up the 2FA prompt and puts keyboard focus there. This moves where the modal is positioned on screen since for some reason its default position is at the very bottom of the screen. Later, in step 6 when you switch back to Fluxer, the keyboard is automatically minimized, which also repositions the 2FA modal. If you're trying to do all this quickly, this often results in you tapping dead space where the 2FA modal used to be, thus closing the modal and then giving you the error that your messages could not be deleted.

This set of steps is also very likely to occur for anyone using the app and needing to 2FA, since most people just use a totp mobile app.

Additionally, the text field used in the 2FA modal appears to be regular text, when it should probably be numerical only.

It's possible this applies anywhere the 2FA modal appears, but this is where I experienced it and it's easy to reproduce this way.

Client and system settings

Version 1.0.0, Beta 39, Channel Beta, Build 2201, Android 16 (arm64), Device Google Pixel 9a, Locale en-US, Push fcm, Flutter 3.44.7, Dart 3.12.2

Stances

Approvals

  • CR: Version 1.0.0, Channel Canary, Build 2262, Android 15 (arm64), Device OnePlus CPH2465, Locale en-GB, Push fcm, Flutter 3.44.9, Dart 3.12.2

Denials

None


Reported: #1304

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Fields

Priority

None yet

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions