hi qMax, you can use wave.getHost() to get the person who added the gadget. Then check if wave.getViewer() is same as wave.getHost(). Hope it helps, Sung,
On Nov 8, 9:05 pm, qMax <[email protected]> wrote: > Hi. > I want to provide different controls in depend on who is controlling > gadget. > Is there a way to determine if current viewer as returned by > wave.getViewer() is one who installed gadget ? > > There's no INSTALL mode > What mode gadget have when it is first time inserted? > > Oh! > I guess i can check gadget state and if it is empty that means it is > newly installed gadget, and then catch viewer and store viwerId in > gadget itself as a moderator/installator. > > Thanks for the answer :) --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Wave API" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/google-wave-api?hl=en -~----------~----~----~----~------~----~------~--~---
