Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(Notifications): icons on flatpak #675

Merged
merged 1 commit into from
Nov 30, 2023

Conversation

GeopJr
Copy link
Owner

@GeopJr GeopJr commented Nov 30, 2023

fix: #426

On flatpak, desktop notification would miss the user avatar. This is due to a bug with the way we set it and the sandbox.

Once notifications are sent, they cannot be modified so the icon has to be ready before sending it. As to avoid delaying them due to downloading the icon, we create a FileIcon with a remote file pointing to the avatar. That however doesn't work on flatpak and would result in notifications never being sent #382. As a workaround, I disabled the icons on flatpak.

This has been reported to the portal and the only solution is downloading the icon in advance. This is what this PR does, it utulizes the image helper so there's cache and sends the notification when the image is done. (only on flatpak, the native versions uses the original solution)

@GeopJr GeopJr marked this pull request as ready for review November 30, 2023 15:21
@GeopJr GeopJr merged commit d3adbe9 into main Nov 30, 2023
5 checks passed
@GeopJr GeopJr deleted the fix/notifications/icons-on-flatpak branch November 30, 2023 15:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Request]: User avatars / profile pictures images in desktop notifications on flatpak
1 participant