> If that item is the first in the full set, then the index SHOULD be '0'
blablahas joined
jonasw
what’s wrong with that?
valohas joined
Maranda
since most array/key-item pairs implementations start iterating from one I fail to get the logic in that
jonasw
the only ones I know are lua and pascal
Dave Cridlandhas left
jonasw
all other languages are sane (<https://www.cs.utexas.edu/users/EWD/transcriptions/EWD08xx/EWD831.html> ;-))
Kevhas joined
valohas joined
jonasw
note that you possibly need to re-map anyways since filters might be involved
tuxhas joined
Dave Cridlandhas left
Maranda
Urgh 🤦♂️ (infact guess the first language I ever learned... Pascal)
jonasw
ha, me too
Dave Cridlandhas left
Dave Cridlandhas left
Dave Cridlandhas joined
Dave Cridlandhas left
Valerianhas joined
Dave Cridlandhas left
Maranda
jonasw, honestly I think I won't touch RSM for another seven years or so now, I hated it back then and I hated it now since someone I won't name made me look into it.✎
Maranda
jonasw, honestly I think I won't touch RSM for another seven years or so now, I hated it back then and I hated it now since someone I won't name made me look into it again. ✏
Dave Cridlandhas left
Dave Cridlandhas left
Dave Cridlandhas left
Dave Cridlandhas joined
Dave Cridlandhas left
Dave Cridlandhas left
Dave Cridlandhas joined
Dave Cridlandhas left
Kev
I can understand that. If I worked in a language where I had to add 1 to an offset, I'd probably find it too difficult as well. :)
apachhas left
McKaelhas left
Maranda
Kev, hehe. Lucky I'm stubborn enough that I get things done, first or laters (and laters may be years of course)
Dave Cridlandhas left
McKaelhas joined
Dave Cridlandhas left
Dave Cridlandhas left
Valerianhas left
Dave Cridlandhas left
goffihas joined
tuxhas left
nycohas left
Zashhas left
Zashhas joined
lorddavidiiihas left
alacerhas joined
lumihas joined
Dave Cridlandhas left
Dave Cridlandhas left
Dave Cridlandhas left
Dave Cridlandhas left
nycohas left
Dave Cridlandhas left
blablahas joined
Dave Cridlandhas left
ludohas left
alacerhas left
mimi89999has joined
lorddavidiiihas joined
Dave Cridlandhas left
Dave Cridlandhas left
Dave Cridlandhas left
apachhas left
lnjhas joined
danielhas left
danielhas joined
Dave Cridlandhas left
Dave Cridlandhas joined
Dave Cridlandhas left
Dave Cridlandhas joined
MbJ3has joined
j.rhas left
j.rhas joined
danielhas left
Yagizahas left
Yagizahas joined
danielhas joined
tuxhas left
tuxhas left
danielhas left
tuxhas joined
Dave Cridlandhas left
Dave Cridlandhas joined
Dave Cridlandhas left
Dave Cridlandhas joined
apachhas left
Andrew Nenakhovhas left
Andrew Nenakhovhas joined
Alexhas joined
marchas joined
danielhas joined
Andrew Nenakhovhas left
Andrew Nenakhovhas joined
j.rhas left
j.rhas joined
tuxhas joined
tuxhas joined
apachhas left
tuxhas left
tuxhas joined
tuxhas left
Dave Cridlandhas left
Dave Cridlandhas joined
vanitasvitaehas joined
Dave Cridlandhas left
Dave Cridlandhas joined
tuxhas left
tuxhas left
Yagizahas left
Dave Cridlandhas left
Dave Cridlandhas joined
Dave Cridlandhas left
Dave Cridlandhas joined
Dave Cridlandhas left
Dave Cridlandhas left
Dave Cridlandhas left
Dave Cridlandhas left
MbJ3has left
MbJ3has joined
apachhas left
MbJ3has left
MbJ3has joined
mimi89999has joined
404.cityhas left
Dave Cridlandhas left
Dave Cridlandhas joined
Dave Cridlandhas left
Dave Cridlandhas joined
Dave Cridlandhas left
Dave Cridlandhas joined
Dave Cridlandhas left
Dave Cridlandhas joined
mrdoctorwhohas joined
MattJhas left
Valerianhas joined
j.rhas left
Dave Cridlandhas left
j.rhas joined
Andrew Nenakhovhas left
Andrew Nenakhovhas joined
Dave Cridlandhas joined
apachhas left
404.cityhas joined
Dave Cridlandhas left
Dave Cridlandhas joined
Andrew Nenakhovhas left
Andrew Nenakhovhas joined
ludohas joined
matlaghas left
jjrhhas left
blablahas joined
Dave Cridlandhas left
Dave Cridlandhas joined
Marandahas joined
!XSF_Martinhas left
!XSF_Martinhas joined
apachhas left
Alexhas left
Dave Cridlandhas left
Dave Cridlandhas joined
Dave Cridlandhas left
Dave Cridlandhas joined
thorstenhas left
labdsfhas left
labdsfhas joined
Valerianhas left
Marandahas left
Marandahas left
Marandahas left
Marandahas left
Maranda
anyone ever catched a choppy client signaling Client State before negotiating SM?
jonasw
isn’t that even how you’re supposed to do things?
jonasw
I always get confused
j.rhas joined
Maranda
jonasw, tbh if there's no resumption I'm a bit confused as well. For me it makes sense to negotiate SM first and then signal client state
Maranda
but since there's no text about that I suppose it could be fine the other way around as well.
Maranda
but in that case I'd have to catch that.
Zash
If the state is a property of the stream then that sorta makes some sense.
Zash
Didn't we agree that this was the case?
Maranda
Zash, sorry do you mean negotiating SM first and then CSI or the other way around? Just to make sure.
Zash
Either way
Maranda
hmm
Zash
Resource binding (and SM) attaches a full JID / session to a stream. Or something.
waqashas joined
j.rhas joined
apachhas left
Maranda
Guess I will catch the case perhaps instead of throwing an error SM wise, not much effort to do that and refresh the session's send reference anyways if there's a queue in the module handling CSI.
valohas left
labdsfhas left
goffihas left
Zashhas left
Dave Cridlandhas left
Dave Cridlandhas joined
Dave Cridlandhas left
Dave Cridlandhas joined
ludohas left
Dave Cridlandhas left
Dave Cridlandhas joined
Dave Cridlandhas left
Dave Cridlandhas joined
thorstenhas left
Dave Cridlandhas left
Dave Cridlandhas joined
Maranda
And flushing presences on stanzas when receiving IQs or Messages, may fix in order processing breakage but it fairly reduces effectiveness of presence deduplication in mucs. 🤷♂️
Dave Cridlandhas left
Dave Cridlandhas joined
Holger
Depends on what you're trying to achieve. If it's about battery saving, from what I've learnt it's all about avoiding to wake the radio. So if you need to send traffic anyway, the additional traffic won't matter.
labdsfhas joined
labdsfhas joined
danielhas left
Maranda
Holger, hmmm perhaps I suppose that you'll need to queue both messages and presences and not just presences in MUC scenario to be somehow effective in that department 🤔
danielhas joined
labdsfhas joined
Holger
Yeah but that would require knowledge on whether the user wants to be notified of (which) MUC messages of course.
ThibGhas joined
Maranda
... which atm adds some kind of complexity, which I don't exactly wanna add tbh 😁
labdsfhas left
Alexhas joined
labdsfhas joined
SamWhitedhas left
Alexhas left
Marandahas left
lorddavidiiihas left
lorddavidiiihas joined
Alexhas joined
thorstenhas left
labdsfhas left
efrithas joined
Holger
We'd need some spec to have clients communicate notification settings to the server.
Alexhas left
jonasw
but the E2EE!!
Alexhas joined
Alexhas left
Holger
Well you could still filter notifications based on 'from'.
jonasw
doesn’t help with most MUC scenarios
Alexhas joined
jonasw
or rather, the most interesting MUC scenario
muppethhas joined
muppethhas joined
Alexhas left
Martinhas joined
Maranda
Holger, maybe I found an elegant and simple solution to the dilemma... what if I just drop chat states/bodyless messages when client state is inactive?
Maranda
That's what mostly overtriggers the queue in mucs anyways✎
Maranda
That's what mostly overtriggers the queue flush in mucs anyways ✏
apachhas left
Martinhas joined
Zashhas left
Holger
jonasw: You mean "notify on mention"? Yeah that's interesting for public rooms (which aren't encrypted anyway) but less so for private groupchat I think.
Alexhas joined
jonasw
"public rooms (which aren't encrypted anyway)" you wish
Holger
Heh.
Holger
Maranda: In ejabberd I dedup chat states in a similar way to presence.
Alexhas left
Holger
I.e. when becoming <active/> again, you receive (only) the most recent from a given full JID.
lovetox
maybe reducing the chatstates can also help, instead of 5, we could have just 3, active, composing, inactive
Holger
Maranda: Same thing for PEP node notifications from a given full JID. Chat Markers would make sense as well I guess.
!XSF_Martinhas joined
Maranda
Holger, I guess I'll just drop completely, for now, at least or I'd have to rework the queue logics.
Maranda
but will test a bit
Dave Cridlandhas left
Dave Cridlandhas joined
Dave Cridlandhas left
Dave Cridlandhas joined
Dave Cridlandhas left
Dave Cridlandhas joined
Dave Cridlandhas left
Dave Cridlandhas joined
Dave Cridlandhas left
Dave Cridlandhas joined
Dave Cridlandhas left
Dave Cridlandhas joined
Dave Cridlandhas left
Dave Cridlandhas joined
Dave Cridlandhas left
Dave Cridlandhas joined
jjrhhas left
Dave Cridlandhas left
Dave Cridlandhas joined
jshas joined
Dave Cridlandhas left
Dave Cridlandhas joined
jjrhhas left
Marandahas joined
Maranda
Also bringing up the argument that blocked/dropped stanzas should be bounced with an error that has definite implications privacy wise. If it's a user blocking you're disclosin' an information to the other party that is not supposed to be given away.
jonasw
I think the error is supposed to be the same as for nonexistant users
Maranda
💡turned on just know
Maranda
jonasw: for simple blocking command some "blocked error" really is used 🙄