Unfortunately there are some apps out there which have IDs that end in ".desktop", such as "org.telegram.desktop". In this case as_app_get_id_filename() returns "org.telegram" instead of "org.telegram.desktop", which is a bug in as_app_set_id(). This showed up in Flatpak: https://github.com/flatpak/flatpak/issues/4535
Unfortunately there are some apps out there which have IDs that end in ".desktop", such as "org.telegram.desktop". In this case as_app_get_id_filename() returns "org.telegram" instead of "org.telegram.desktop", which is a bug in as_app_set_id(). This showed up in Flatpak: https://github.com/flatpak/flatpak/issues/4535