[jitsi-dev] Opening/adding an unknown chatroom when you're already joined?


#1

Hi,

In case IRC automatically joins you to a chatroom, I'd like to be able
to pop-up the chatroom window for that chatroom. However, currently,
when I fire a LocalUserPresence...(something) event, I get no response.
Now, the lack of response I can explain, since that in itself is not
urgent enough to pop up a window given the recent changes to window pop
up behavior. However, when I receive the first messages and I click the
'recent message' row in the Contacts-list I do not get a complete
situation. (Other chatroom members missing, topic missing, etc.)

Obviously the missing information described above, can be due to
something I forgot to implement, however ...

···

*
*I'd like to know how I should inform Jitsi of chatrooms that the user
is (automatically) joined which Jitsi:
1. doesn't know about beforehand, and
2. aren't in the contactlist, and
3. didn't initiate
(all may apply)
**
Thanks!
Danny
**


#2

Hi All,

I think this is currently the only thing missing in supporting
server-initiated channel joining for IRC.
I have looked at the code, but all code seems aimed at opening chat
rooms / creating chat room wrappers that are initiated from the
Jitsi-client itself.

Before I start to restructure Jitsi to enable this feature, can anyone
confirm this? (I wouldn't be surprised if I missed something.)

I have mainly been looking in the area of
GuiActivator.getMUC().{"openStuff","createStuff"}.

Thanks!
Danny

···

On 03/25/2014 10:20 PM, Danny van Heumen wrote:

Hi,

In case IRC automatically joins you to a chatroom, I'd like to be able
to pop-up the chatroom window for that chatroom. However, currently,
when I fire a LocalUserPresence...(something) event, I get no response.
Now, the lack of response I can explain, since that in itself is not
urgent enough to pop up a window given the recent changes to window pop
up behavior. However, when I receive the first messages and I click the
'recent message' row in the Contacts-list I do not get a complete
situation. (Other chatroom members missing, topic missing, etc.)

Obviously the missing information described above, can be due to
something I forgot to implement, however ...
*
*I'd like to know how I should inform Jitsi of chatrooms that the user
is (automatically) joined which Jitsi:
1. doesn't know about beforehand, and
2. aren't in the contactlist, and
3. didn't initiate
(all may apply)
**
Thanks!
Danny
**

_______________________________________________
dev mailing list
dev@jitsi.org
Unsubscribe instructions and other list options:
http://lists.jitsi.org/mailman/listinfo/dev


#3

Hi Danny,

I think currently we don't have use case for creating chat room wrappers
and openning a chat room that is not initiated from Jitsi client for chat
rooms that are not in the contact list. Currently to join a chat room it
should be added in the contact list first.

The LocalUserChatRoomPresenceChangeEvent event will open the chat room only
if the chat room setting "Open chat room automatically when..." is set to
open the window on activity.

I think you should add the room (save it to configuration and add it to the
contact list), then fire the LocalUserChatRoomPresenceChangeEvent to inform
the listeners about joining it and then you can open the chat window.

Regards,
Hristo.

···

On Sun, Mar 30, 2014 at 10:23 PM, Danny van Heumen <danny@dannyvanheumen.nl>wrote:

Hi All,

I think this is currently the only thing missing in supporting
server-initiated channel joining for IRC.
I have looked at the code, but all code seems aimed at opening chat
rooms / creating chat room wrappers that are initiated from the
Jitsi-client itself.

Before I start to restructure Jitsi to enable this feature, can anyone
confirm this? (I wouldn't be surprised if I missed something.)

I have mainly been looking in the area of
GuiActivator.getMUC().{"openStuff","createStuff"}.

Thanks!
Danny

On 03/25/2014 10:20 PM, Danny van Heumen wrote:
> Hi,
>
> In case IRC automatically joins you to a chatroom, I'd like to be able
> to pop-up the chatroom window for that chatroom. However, currently,
> when I fire a LocalUserPresence...(something) event, I get no response.
> Now, the lack of response I can explain, since that in itself is not
> urgent enough to pop up a window given the recent changes to window pop
> up behavior. However, when I receive the first messages and I click the
> 'recent message' row in the Contacts-list I do not get a complete
> situation. (Other chatroom members missing, topic missing, etc.)
>
> Obviously the missing information described above, can be due to
> something I forgot to implement, however ...
> *
> *I'd like to know how I should inform Jitsi of chatrooms that the user
> is (automatically) joined which Jitsi:
> 1. doesn't know about beforehand, and
> 2. aren't in the contactlist, and
> 3. didn't initiate
> (all may apply)
> **
> Thanks!
> Danny
> **
>
>
> _______________________________________________
> dev mailing list
> dev@jitsi.org
> Unsubscribe instructions and other list options:
> http://lists.jitsi.org/mailman/listinfo/dev

_______________________________________________
dev mailing list
dev@jitsi.org
Unsubscribe instructions and other list options:
http://lists.jitsi.org/mailman/listinfo/dev

--
Regards,
Hristo.


#4
···

Hi Hristo,

  Thanks for the pointers. I'll have a look at adding this

functionality. I’m not sure whether it is desirable to add every
chatroom you get joined to, but I’ll need to see what all the use
cases are.

  Kind regards,

  Danny

  On 03/31/2014 10:43 AM, Hristo Terezov wrote:

Hi Danny,

      I think currently we don't have use case for creating chat

room wrappers and openning a chat room that is not initiated
from Jitsi client for chat rooms that are not in the contact
list. Currently to join a chat room it should be added in the
contact list first.

      The LocalUserChatRoomPresenceChangeEvent event will open

the chat room only if the chat room setting “Open chat room
automatically when…” is set to open the window on activity.

      I think you should add the room (save it to configuration

and add it to the contact list), then fire the
LocalUserChatRoomPresenceChangeEvent to inform the listeners
about joining it and then you can open the chat window.

Regards,

Hristo.

      On Sun, Mar 30, 2014 at 10:23 PM, Danny

van Heumen danny@dannyvanheumen.nl
wrote:

Hi All,

        I think this is currently the only thing missing in

supporting

        server-initiated channel joining for IRC.

        I have looked at the code, but all code seems aimed at

opening chat

        rooms / creating chat room wrappers that are initiated from

the

        Jitsi-client itself.



        Before I start to restructure Jitsi to enable this feature,

can anyone

        confirm this? (I wouldn't be surprised if I missed

something.)

        I have mainly been looking in the area of

        GuiActivator.getMUC().{"openStuff","createStuff"}.



        Thanks!

        Danny






            On 03/25/2014 10:20 PM, Danny van Heumen wrote:

            > Hi,

            >

            > In case IRC automatically joins you to a chatroom,

I’d like to be able

            > to pop-up the chatroom window for that chatroom.

However, currently,

            > when I fire a LocalUserPresence...(something)

event, I get no response.

            > Now, the lack of response I can explain, since that

in itself is not

            > urgent enough to pop up a window given the recent

changes to window pop

            > up behavior. However, when I receive the first

messages and I click the

            > 'recent message' row in the Contacts-list I do not

get a complete

            > situation. (Other chatroom members missing, topic

missing, etc.)

            >

            > Obviously the missing information described above,

can be due to

            > something I forgot to implement, however ...

            > *

            > *I'd like to know how I should inform Jitsi of

chatrooms that the user

            > is (automatically) joined which Jitsi:

            > 1. doesn't know about beforehand, and

            > 2. aren't in the contactlist, and

            > 3. didn't initiate

            > (all may apply)

            > **

            > Thanks!

            > Danny

            > **

            >

            >

            > _______________________________________________

            > dev mailing list

            > dev@jitsi.org

            > Unsubscribe instructions and other list options:

            > [http://lists.jitsi.org/mailman/listinfo/dev](http://lists.jitsi.org/mailman/listinfo/dev)





            _______________________________________________

            dev mailing list

            dev@jitsi.org

            Unsubscribe instructions and other list options:

            [http://lists.jitsi.org/mailman/listinfo/dev](http://lists.jitsi.org/mailman/listinfo/dev)


Regards,
Hristo.


_______________________________________________
dev mailing list
Unsubscribe instructions and other list options:

dev@jitsi.orghttp://lists.jitsi.org/mailman/listinfo/dev


#5

Not sure, but as for use-cases in a few occasions, I like to join a chat room just a single time and do that even from a weblink which then offers me my IRC clients via OSX to choose from.

Often I do not want that room in my irc-bookmarks list.

So there’s your use-case.

Looking forward to IRC support in Jitsi :slight_smile:

Hi Hristo,

Thanks for the pointers. I'll have a look at adding this functionality. I'm not sure whether it is desirable to add every chatroom you get joined to, but I'll need to see what all the use cases are.

Kind regards,
Danny

Hi Danny,

I think currently we don't have use case for creating chat room wrappers and openning a chat room that is not initiated from Jitsi client for chat rooms that are not in the contact list. Currently to join a chat room it should be added in the contact list first.

The LocalUserChatRoomPresenceChangeEvent event will open the chat room only if the chat room setting "Open chat room automatically when..." is set to open the window on activity.

I think you should add the room (save it to configuration and add it to the contact list), then fire the LocalUserChatRoomPresenceChangeEvent to inform the listeners about joining it and then you can open the chat window.

Regards,
Hristo.

Hi All,

I think this is currently the only thing missing in supporting
server-initiated channel joining for IRC.
I have looked at the code, but all code seems aimed at opening chat
rooms / creating chat room wrappers that are initiated from the
Jitsi-client itself.

Before I start to restructure Jitsi to enable this feature, can anyone
confirm this? (I wouldn't be surprised if I missed something.)

I have mainly been looking in the area of
GuiActivator.getMUC().{"openStuff","createStuff"}.

Thanks!
Danny

···

Am 31.03.2014 um 23:10 schrieb Danny van Heumen <danny@dannyvanheumen.nl>:
On 03/31/2014 10:43 AM, Hristo Terezov wrote:
On Sun, Mar 30, 2014 at 10:23 PM, Danny van Heumen <danny@dannyvanheumen.nl> wrote:

On 03/25/2014 10:20 PM, Danny van Heumen wrote:

Hi,

In case IRC automatically joins you to a chatroom, I'd like to be able
to pop-up the chatroom window for that chatroom. However, currently,
when I fire a LocalUserPresence...(something) event, I get no response.
Now, the lack of response I can explain, since that in itself is not
urgent enough to pop up a window given the recent changes to window pop
up behavior. However, when I receive the first messages and I click the
'recent message' row in the Contacts-list I do not get a complete
situation. (Other chatroom members missing, topic missing, etc.)

Obviously the missing information described above, can be due to
something I forgot to implement, however ...
*
*I'd like to know how I should inform Jitsi of chatrooms that the user
is (automatically) joined which Jitsi:
1. doesn't know about beforehand, and
2. aren't in the contactlist, and
3. didn't initiate
(all may apply)
**
Thanks!
Danny
**

_______________________________________________
dev mailing list
dev@jitsi.org
Unsubscribe instructions and other list options:
http://lists.jitsi.org/mailman/listinfo/dev

_______________________________________________
dev mailing list
dev@jitsi.org
Unsubscribe instructions and other list options:
http://lists.jitsi.org/mailman/listinfo/dev

--
Regards,
Hristo.

_______________________________________________
dev mailing list
dev@jitsi.org
Unsubscribe instructions and other list options:
http://lists.jitsi.org/mailman/listinfo/dev
_______________________________________________
dev mailing list
dev@jitsi.org
Unsubscribe instructions and other list options:
http://lists.jitsi.org/mailman/listinfo/dev


#6

Hey Danny,

Hi Hristo,

Thanks for the pointers. I'll have a look at adding this functionality.
I'm not sure whether it is desirable to add every chatroom you get
joined to, but I'll need to see what all the use cases are.

We have an isPersistent property for contacts. It sounds like this could also be of use here.

Emil

···

On 31.03.14, 23:10, Danny van Heumen wrote:

Kind regards,
Danny

On 03/31/2014 10:43 AM, Hristo Terezov wrote:

Hi Danny,

I think currently we don't have use case for creating chat room
wrappers and openning a chat room that is not initiated from Jitsi
client for chat rooms that are not in the contact list. Currently to
join a chat room it should be added in the contact list first.

The LocalUserChatRoomPresenceChangeEvent event will open the chat room
only if the chat room setting "Open chat room automatically when..."
is set to open the window on activity.

I think you should add the room (save it to configuration and add it
to the contact list), then fire the
LocalUserChatRoomPresenceChangeEvent to inform the listeners about
joining it and then you can open the chat window.

Regards,
Hristo.

On Sun, Mar 30, 2014 at 10:23 PM, Danny van Heumen >> <danny@dannyvanheumen.nl <mailto:danny@dannyvanheumen.nl>> wrote:

    Hi All,

    I think this is currently the only thing missing in supporting
    server-initiated channel joining for IRC.
    I have looked at the code, but all code seems aimed at opening chat
    rooms / creating chat room wrappers that are initiated from the
    Jitsi-client itself.

    Before I start to restructure Jitsi to enable this feature, can anyone
    confirm this? (I wouldn't be surprised if I missed something.)

    I have mainly been looking in the area of
    GuiActivator.getMUC().{"openStuff","createStuff"}.

    Thanks!
    Danny

    On 03/25/2014 10:20 PM, Danny van Heumen wrote:
    > Hi,
    >
    > In case IRC automatically joins you to a chatroom, I'd like to
    be able
    > to pop-up the chatroom window for that chatroom. However, currently,
    > when I fire a LocalUserPresence...(something) event, I get no
    response.
    > Now, the lack of response I can explain, since that in itself is not
    > urgent enough to pop up a window given the recent changes to
    window pop
    > up behavior. However, when I receive the first messages and I
    click the
    > 'recent message' row in the Contacts-list I do not get a complete
    > situation. (Other chatroom members missing, topic missing, etc.)
    >
    > Obviously the missing information described above, can be due to
    > something I forgot to implement, however ...
    > *
    > *I'd like to know how I should inform Jitsi of chatrooms that
    the user
    > is (automatically) joined which Jitsi:
    > 1. doesn't know about beforehand, and
    > 2. aren't in the contactlist, and
    > 3. didn't initiate
    > (all may apply)
    > **
    > Thanks!
    > Danny
    > **
    >
    > _______________________________________________
    > dev mailing list
    > dev@jitsi.org <mailto:dev@jitsi.org>
    > Unsubscribe instructions and other list options:
    > http://lists.jitsi.org/mailman/listinfo/dev

    _______________________________________________
    dev mailing list
    dev@jitsi.org <mailto:dev@jitsi.org>
    Unsubscribe instructions and other list options:
    http://lists.jitsi.org/mailman/listinfo/dev

--
Regards,
Hristo.

_______________________________________________
dev mailing list
dev@jitsi.org
Unsubscribe instructions and other list options:
http://lists.jitsi.org/mailman/listinfo/dev

_______________________________________________
dev mailing list
dev@jitsi.org
Unsubscribe instructions and other list options:
http://lists.jitsi.org/mailman/listinfo/dev

--
https://jitsi.org


#7

Hi Emil,

···

On 04/05/2014 11:32 AM, Emil Ivov wrote:

Hey Danny,

On 31.03.14, 23:10, Danny van Heumen wrote:

Hi Hristo,

Thanks for the pointers. I'll have a look at adding this functionality.
I'm not sure whether it is desirable to add every chatroom you get
joined to, but I'll need to see what all the use cases are.

We have an isPersistent property for contacts. It sounds like this
could also be of use here.

Yup, I found it already. Works like a charm! :slight_smile:

Danny