Calling HipChat.register function from both sidebar and dialog

hipchat

#1

I’m trying to use HipChat dialogs but I encountered an issue. I’ve registered callbacks using HipChat.register from the sidebar and it works fine. But, I’ve added a dialog. I’m triggering the dialog from sidebar by using js client and the opened dialog also calls HipChat.register function to get the data from the sidebar. Basically, I’m passing data from sidebar to dialog when opened. But when I register for callbacks in the dialog, it overwrites the registrations of sidebar and breaks it. I’m assuming HipChat.register works globally and I should call this only ones? If this is the case, can you suggest another way to get data from sidebar to dialog. If not, this looks like a bug.


#2

Hey Serhatcan,

can you please help me in creating glance. I would like to start up.

Thanks