Sometimes software updates are buggy and flatpaks are no exception so we need to rollback to an earlier version. First lets find the application id of the package we want to downgrade.
flatpak list | grep <app name here>
The application id will contain at least two periods and should be the second column like so.
Next in order to find commit code of the previous release we want we will need to run this in order to find it.
flatpak remote-info --log flathub <app id here>
The next command requires sudo as flatpak requires it when downgrading packages. Using the commit code you found and enter it in like so with the app id.
sudo flatpak update --commit=<commit code here> <app id here>
If all went well you should see it downloading various older packages. You can check the downgraded flatpak version using this command once again and looking at the third column.
flatpak list | grep <app name here>
Next we're going to mask the flatpak so our system doesn't undo our hard work and update it to the new buggy version we just got rid of. I'm going to do it system wide but if you just wanna do it on a specific user just use --user
instead of --system
.
flatpak mask --system <app id here>
Now if we ever want to re-enable updates again we can just remove the mask.
flatpak mask --remove <app id here>
Here are my sources where I learned how to do this stuff. I hope it's been useful.