Logs for jdev
[00:21:29] * Christopher Zorn left the chat.
[00:28:08] * Tobias_ joined the chat.
[00:32:51] * Tobias left the chat.
[00:50:20] * MattJ left the chat.
[01:15:02] * darkrain_ left the chat.
[02:41:04] * deryni left the chat.
[06:15:19] * Alex joined the chat.
[06:36:10] * Tobias_ left the chat.
[06:43:04] * Tobias joined the chat.
[06:59:58] * Alex left the chat.
[06:59:58] * Alex joined the chat.
[07:32:24] * Treebilou joined the chat.
[07:46:28] * Tobias left the chat.
[07:46:42] * Tobias joined the chat.
[08:01:10] * luca tagliaferri joined the chat.
[08:24:16] * xnyhps left the chat.
[08:42:49] * xnyhps joined the chat.
[10:09:58] * Tobias left the chat.
[10:12:32] * Tobias joined the chat.
[10:37:04] * Tobias left the chat.
[11:03:06] * luca tagliaferri left the chat.
[11:14:48] * Treebilou left the chat.
[11:18:44] * luca tagliaferri joined the chat.
[11:18:58] * Kev joined the chat.
[11:19:17] * luca tagliaferri left the chat.
[11:19:28] * luca tagliaferri joined the chat.
[11:22:04] * Kev_____ left the chat.
[11:27:14] * Tobias joined the chat.
[11:31:58] * luca tagliaferri left the chat.
[11:34:25] * luca tagliaferri joined the chat.
[11:34:25] * luca tagliaferri left the chat.
[11:38:19] * luca tagliaferri joined the chat.
[11:52:29] * Tobias left the chat.
[12:00:44] * kilian joined the chat.
[12:18:39] * MattJ joined the chat.
[12:42:30] * kilian left the chat.
[13:01:03] * Tobias joined the chat.
[13:23:53] * naw joined the chat.
[13:24:07] * naw left the chat.
[13:25:14] * MattJ left the chat.
[13:25:21] * MattJ joined the chat.
[13:54:32] * Michael joined the chat.
[13:56:34] <Michael> hey all, I've a question regarding "best practice". Currently when I display a conversation between user A and B I send a
presence stanza to my bare jid with a custom extension added to it with the JID of the participant. This is done in order
to notify all loggedin sessions that the specified conversation has been read.
[13:57:02] <Michael> Is this a good way to achieve this or should I use instead a IQ stanza or maybe some stanza using PEP?
[13:57:50] <Kev> Using a presence stanza for that seems to be reasonably smart.
[14:07:20] * deryni joined the chat.
[14:19:09] <Michael> I just see from time to time (don't really now why yet) that those presence stanzas with extension added to iz are being sent
again with a delay-node in them (so something like offline presence stuff).. currently I just don't care about them but I
wonder if I could somehow prevent this :)
[14:19:24] <MattJ> Using Gmail?
[14:21:23] <Kev> Gmail does some broken things with presence.
[14:21:34] <Kev> If it's your jabber.org account, that shouldn't be happening.
[14:21:36] <Kev> Ah, wait.
[14:21:45] <Kev> You're sending to your own bare JID
[14:21:56] <Kev> Which is equivalent to sending with no to. Which is broadcast presence.
[14:22:09] <Kev> So this isn't going to work right.
[14:22:12] <ralphm> that seems bad
[14:24:44] <Michael> hmm ok
[14:24:44] <Michael> no it's using my own servers
[14:25:31] <ralphm> Michael: if I understand it correctly, you are basically broadcasting whoever you are chatting with to all of your contacts
[14:25:59] <deryni> Will the custom extension be propagated on presence?
[14:26:05] <ralphm> sure
[14:26:36] <Michael> hmm well the intention was that it's sent to all sessions opened with the same user (that's why I chose to send it to my own
bare jid)
[14:26:52] <ralphm> Michael: unfortunately (for you) it doesn't work like that
[14:27:21] <Michael> I don't use roster atm yet so I won't have any contacts yet, but obviously this might lead to a privacy issue if sending to
the own bare jid equals sending a broadcast to all contacts _|
[14:27:22] <Michael> :|
[14:27:29] <ralphm> sending presence without a to attribute is equivalent to sending presence with a to attribute holding your own bare JID
[14:27:40] <Michael> hmm, ok I understand
[14:28:14] <Michael> so bad things will happen ;) well then how to fix this issue? I think therefore I can't use the presence stanza at all for
this
[14:28:27] <Michael> and would need to use IQ (?) or PEP for this?
[14:29:28] <Kev> I'd use a message, probably.
[14:29:36] <ralphm> Yeah
[14:29:42] <Kev> You'll have to iterate over all your resources (unless you're using carbons).
[14:30:49] <Michael> i'm using carbons but not for BOSH connections (only native connections and websocket connections) because there seems some
issue with IE and bosh and carbons :(
[14:31:04] <Michael> hm
[14:31:58] <Michael> but when I send a message to my bare jid and all resources have the same presence priority it should work as well.. or is
this a wrong guess?
[14:32:09] <Kev> No, that's not guaranteed.
[14:32:17] <Kev> Might happen, might not.
[14:32:20] <Michael> ok
[14:32:44] <ralphm> Michael: servers are free to choose how to distribute messages sent to the bare JID
[14:33:13] <ralphm> e.g. Google sends it to all resources
[14:33:27] <ralphm> but other servers only to one
[14:33:29] <Michael> so it might be helpful to know how ejabberd handles this.. but relying on this isn't really best practice
[14:33:46] <ralphm> indeed
[14:36:45] <Kev> Michael: Given it could change from version to version, you really shouln't rely on it.
[14:37:10] <Kev> You do know all of your resources, though, so iterating over them isn't much of a hardship.
[14:40:33] <Michael> I know them because all of them send me a presence stanza when I connect, correct?
[14:41:41] <Michael> question is if I could (ab)use PEP for this. According to the spec I've just read it seems that when a user publishes an event
it will be distributed to all connected resources
[14:42:19] <Michael> if I restrict now the access model to that only the own user can receive those PEP events, it should work as well
[14:43:09] <Michael> (I'm thinking about this because we'd need to implement the resource caching on every client which requires quite some changes
:))
[14:45:03] * darkrain_ joined the chat.
[14:46:34] <Michael> hmm but using PEP would mean that the last published item would be distributed on connection again .. which is bad
[14:47:03] <MattJ> Same with presence
[14:51:13] <Michael> ok well so I will think about how to do it the best way using your answers. Thanks a lot!
[14:53:44] * Alex left the chat.
[14:55:33] * luca tagliaferri left the chat.
[14:57:16] * Tobias left the chat.
[15:04:21] * kilian joined the chat.
[15:06:51] * Michael left the chat.
[15:23:27] * scippio joined the chat.
[15:47:21] * Treebilou joined the chat.
[15:55:04] * Tobias joined the chat.
[15:55:10] * Tobias left the chat.
[15:55:13] * Tobias joined the chat.
[16:19:34] * Alex joined the chat.
[16:29:18] * Christopher Zorn joined the chat.
[17:04:04] * Tobias left the chat.
[17:04:12] * Tobias joined the chat.
[17:22:45] * scippio left the chat.
[17:39:56] * scippio joined the chat.
[17:51:15] * Tobias left the chat.
[18:07:04] * kilian left the chat.
[18:14:12] * scippio left the chat.
[18:39:21] * Lance joined the chat.
[18:39:21] * Lance left the chat.
[18:53:04] * luca tagliaferri joined the chat.
[19:50:33] * naw joined the chat.
[20:14:35] * scippio joined the chat.
[21:12:24] * naw left the chat.
[22:04:51] * Alex left the chat.
[23:05:08] * mathieui joined the chat.
[23:09:30] * Tobias joined the chat.
[23:50:01] * Christopher Zorn left the chat.
[23:59:21] * Christopher Zorn joined the chat.