MCMrARM / revolution-irc

A modern Android IRC client. #revolutionirc on Libera.chat
GNU General Public License v3.0
544 stars 63 forks source link

Cannot change heartbeat interval #333

Open MatejKovacic opened 1 year ago

MatejKovacic commented 1 year ago

If I go to Settings and Reconnection and try to set up Heartbeat interval to let's say 5 minutes or 150 seconds, basically anything else as preset 15 minutes, Revolution IRC does not remember this change. Heartbeat interval always stays 15 minutes.

I have the latest version from Google Play.

A bug?

EmberHeartshine commented 1 month ago

Popping in to mention that this issue continues to persist almost two years later.

I have, however, found a workaround.

  1. Back up your settings
  2. Open the zip file and extract everything to a folder
  3. Edit the file preferences.json
  4. Find the "ping_interval" object. Note that the interval should be 900000, or 15 minutes in milliseconds
  5. Change the interval to something you want (ex. 3 minutes would be 180000)
  6. Rezip the contents of the directory (make sure not to zip the directory, only its contents)
  7. Restore the backup in Revolution IRC

The UI will still say 15 minutes, but if you run another backup it'll have the correct interval and Revolution IRC does actually send the heartbeat ping at the correct time.