[Google Wave APIs] Re: Text appended twice in blip

2009-11-01 Thread Karan Bhatnagar
let you guys know. > > In the mean while the workaround to not have doubling of the text you can > do this - > > Blip newBlip = wavelet.appendBlip(); > newBlip.getDocument().delete(); > newBlip.getDocument().append("hello"); > > This should only print the text once.

[Google Wave APIs] Re: Text appended twice in blip

2009-10-31 Thread Karan Bhatnagar
31, 2009 at 11:17 PM, Karan Bhatnagar wrote: > If this is because the logs show it both in *content *as well as *property > *field? > > > On Sat, Oct 31, 2009 at 11:13 PM, Karan Bhatnagar < > karan.bhatna...@gmail.com> wrote: > >> Hi, >> I am facing a stran

[Google Wave APIs] Re: Text appended twice in blip

2009-10-31 Thread Karan Bhatnagar
If this is because the logs show it both in *content *as well as *property * field? On Sat, Oct 31, 2009 at 11:13 PM, Karan Bhatnagar wrote: > Hi, > I am facing a strange problem. My robot is trying to add a blip to the > wave using: > > @Override > public

[Google Wave APIs] Text appended twice in blip

2009-10-31 Thread Karan Bhatnagar
Hi, I am facing a strange problem. My robot is trying to add a blip to the wave using: @Override public void processEvents(RobotMessageBundle bundle) { . bundle.getWavelet().appendBlip().getDocument().append(SOME_STRING); // where bundle is the object of RobotMessageBundle class ..

[Google Wave APIs] Re: Robot notified when it is added as participant?

2009-10-23 Thread Karan Bhatnagar
Sorry for spamming, Just FYI...Event.getAddedParticipants() helped in deciding it. On Fri, Oct 23, 2009 at 5:14 PM, Karan Bhatnagar wrote: > RobotMessageBundle.wasSelfAdded() is returning true each time. > > > On Fri, Oct 23, 2009 at 4:53 PM, Karan Bhatnagar < > karan.bhatna..

[Google Wave APIs] Re: Robot notified when it is added as participant?

2009-10-23 Thread Karan Bhatnagar
EventType.WAVELET_SELF_ADDED is being triggered if I add robotn...@appspot.com. It is again triggered if I add robotname+...@appspot.com . Any hint how to handle the situation that I should call my handler only the first time? I think if I can determine if my robot is already a participant then the

[Google Wave APIs] Re: Robot notified when it is added as participant?

2009-10-23 Thread Karan Bhatnagar
RobotMessageBundle.wasSelfAdded() is returning true each time. On Fri, Oct 23, 2009 at 4:53 PM, Karan Bhatnagar wrote: > EventType.WAVELET_SELF_ADDED is being triggered if I add > robotn...@appspot.com. It is again triggered if I add > robotname+...@appspot.com . Any hint how to >