-
-
Notifications
You must be signed in to change notification settings - Fork 589
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
Improve SDK use with guest accounts #998
Comments
Yes, it does. Furthermore, if I patch the SDK and trick it into not fetching push rules, it does the same for filters, and my attempts at tricking the SDK into not doing that failed utterly. The exact error for endpoint Which means: the js-SDK can't be used for guest accounts, at least not like this and I don't see any other way from the documentation. I modified the VOIP example a bit (See: browserTest.js.txt ), minor changes mostly, the interesting bits related to guests are lines 38 to 58; I did some light refactoring of the rest to depend less on global vars, but that's mostly the same example from this repository. |
Maybe the difference is that Riot doesn't actually call It does seem like the behaviour of guest accounts in the JS SDK could be cleaned up and improved so this is less confusing. |
Alright, your pointer that riot doesn't use So, clients can't currently use Line 614 in 88fdeca
However: I see that the function If I duplicate that function in my code and call it, I am able to initiate a call and the SDK client sees the TURN servers, but the client is not processing any further events from the server so it doesn't result in a working call. Which leads me to: am I missing something? or is there nothing in the API that allows me to keep polling the state of a room? |
You can do |
I was testing the sdk to do something silly with guest accounts but the client won't sync due to trying to query
/_matrix/client/r0/pushrules/
, which returns:Does this mean the SDK can't be used for guest accounts? is it a bug?
FWIW, I'd create a PR and add an example for #430
In a nutshell the way I am using the SDK is:
client = matrixcs.createClient(opts)
client.registerGuest()
client = matrixcs.createClient(opts)
client.startClient()
The text was updated successfully, but these errors were encountered: