e350b4c2c2
`inviteUser` is asynchronous so you can't just call it and plough straight on. Also some logging improvements which helped debug this