This is needed to avoid the cargo vendor error:
found duplicate version of package `either v1.5.3
I've just updated the version number of either in our custom fork to
1.5.99 so we've no conflict here.
The join_room method parameter was a RoomId so it was not possible to
join to a room by alias. This patch changes that parameter to a
RoomIdOrAliasId so we can use a RoomId or an AliasId.
This patch also encode the `#` in the AliasId because in other case, the
url is not correct and the request will fail.
Besides the above fixes, this patch also improves a bit the error
management for the join_room method, so the error dialog will have more
information, for example if the room is not found on the server or
something like that. This information is the direct response from the
matrix server, but I think it's okay to show that to the user as
feedback because in other case the user should run Fractal in debug mode
to know what's happening.
Fixes https://gitlab.gnome.org/GNOME/fractal/-/issues/658
The matrix server request expect the "server" parameter to be a string.
If the "server" in Parameters is "Option<Host<String>>" it serializes to
somethign like 'Domain("matrix.org")'.
This patch makes the server parameter a string so the request is built
correctly everytime. The "Host" enum is converted to an string during
the parsing.
It seems that Synapse sometimes sends junk data in fields where a URL
is expected. Since there are plans to use the ruma libraries and they
don't use Url intentionally, doing this fixes#642 and adapts the code
for the future inclusion of ruma.
When the avatar is updated the cached image should be removed in order
to force a download of the new one.
This patch adds a new function to remove a user info from the cache and
do call to this new function when the user avatar is updated.
During the App::connect_gtk the login_data is None, so the
AccountSettings is not initialized correctly.
We need to get the login_data when we are going to change the avatar,
because that data can change during the app usage.
This patch uses the AppOp shared reference to get the updated data just
on click.
Fix https://gitlab.gnome.org/GNOME/fractal/-/issues/652