New method pinVideoToFirstView: doesn't accept '0' as self

Hello

Sorry another note about the new mac SDK

When using actionMeetinWithCmd I can send a userID of 0 and this will alway refer to myself. However with the new method pinVideoToFirstView this returns an invalidArgumentError

I haven’t tested the other new methods yet.

I can obviously work around this, but it would be nice if the methods were consitent!

Thanks

Hi @richard1, thanks for catching this!

Just to make sure, am I correct in understanding that this does not prevent you from using this method for your self video if you retrieve your self ID and pass that in? If that’s not the case, this will have a higher priority on our end, so please let me know.

Thanks!

Hello

No - I can still pin myself if I can find my full userID - on that note is there an easier way of finding my userID than iterating through every user and asking if it’s me?

Thanks

Hi @richard1,

Unfortunately I am not aware of an easier way to do this through the SDK.

There is probably a way to do this through our REST API. If you’d like to consider that approach, you may find our API docs and #api-and-webhooks category of the forum helpful. :slightly_smiling_face:

Thanks!