metabolist / metatext

A free, open-source iOS Mastodon client.
https://metabolist.org/metatext
GNU General Public License v3.0
726 stars 101 forks source link

Notifications settings ran amok, self-toggling rapidly, until request limit reached #165

Open despairbear opened 2 years ago

despairbear commented 2 years ago

Describe the bug When I was attempting to change notification settings for a Mastodon account via Preferences | Notification Types, the client got into a state where it was rapidly toggling the notifications on and off by itself, until the server's API request limit was reached and locked me out. Video linked below demonstrates.

To Reproduce This bug is seen-once because I dare not try to reproduce it (for fear of being locked out of my instance altogether). What I did was:

  1. Click on my avatar icon at the top-left of my Timelines page
  2. Click ⚙ Preferences
  3. Click Notification Types
  4. Toggle several notification sliders from on to off in quick succession.

The client then got into a state where the sliders were rapidly flipping on and off by themselves.

I clicked each slider only once, but I went from top to bottom very quickly. It is possible that I toggled eg Reblog before Favorite had finished moving.

The settings were all in default state to start with.

Expected behavior I was hoping to turn off all of my notifications except for "mention", by clicking them from top to bottom.

Screenshots The attached video shows the last few moments of the preferences page self-toggling, followed by the "Too many requests" error that locked me out of the instance. This behavior had been going on for about five seconds before I started recording.

https://user-images.githubusercontent.com/3677274/201581081-9246b327-4847-4159-8b34-544e7ab947b5.mp4

(please complete the following information):

MikeBeas commented 2 years ago

Experienced the same issue today and was coming here to report it. I have a longer video that shows the complete process so I'll put it here.

Device: iPhone 13 Pro OS: iOS 16.2 beta 3 App Version: 1.6.0 (1)

https://user-images.githubusercontent.com/1298129/202348705-865ace7b-54c8-4192-b822-96d0afd194d4.mov