talk-ios icon indicating copy to clipboard operation
talk-ios copied to clipboard

Add scheme URL for switching accounts

Open mpivchev opened this issue 2 years ago • 2 comments

We should add a scheme url for switching accounts, but only if that account is logged in, otherwise do nothing. In the Files app we use this url scheme, so ideally it should be the same:

nextcloud://open-and-switch-account?user=someUser&url=https://cloud.nextcloud.com

It's a feature request connected to: https://github.com/nextcloud/ios/issues/2460

mpivchev avatar Jun 15 '23 10:06 mpivchev

@SystemKeeper can you check if you have this in talk-ios? I think this was closed by accident.

tobiasKaminsky avatar Aug 17 '23 07:08 tobiasKaminsky

We don't have this right now, you can either trigger a login or switch to a conversation. With the latter we either enforce withUser or withRoomToken as parameters. If we remove that enforcement, we have the functionality we want (without user/room token just switch to the account). The URL would then look like this

nextcloudtalk://open-conversation?server=https://nextcloud-mm.local&user=admin

That would be a 1-line change. Would that work for you?

SystemKeeper avatar Aug 20 '23 09:08 SystemKeeper