-
edhelas
one small question, in RSM, how do I know that I reached the last page while using <after/> ?
-
flow
I fear the answer could be "once receive an empty page"✎ -
flow
I fear the answer could be "once you receive an empty page" ✏
-
flow
MAM has the 'fin' attribute, makes we wonder if we should have a generic "this is the end of the result set (i.e., the last page)" marker in RSM
-
Zash
You mean the `complete` attribute
-
Zash
`fin` is now just a leftover from when you got the iq-result immediately, followed by the result messages and something needed to mark the end of those
-
Sam
What complete attribute? I don't think that's a thing in RSM
-
Sam
oh, nevermind, you meant in MAM
-
Zash
I meant MAM
-
Zash
In bare RSM without any other provisions, empty page would be the end of results marker. Probably without any <first> and <last> in the rsm tag
-
edhelas
i'm currently paging into a ejabberd Pubsub node, using RSM for pagination and having a "previous" and "next" buttons
-
edhelas
things are going pretty fine and i can actually send <before/> and <after/> when moving up and down the items
-
Sam
In that case in particular it would probably be nice to actually know if you should show a next button before doing the query
-
edhelas
except when I have this case, and I actually don't have hints about how to handle it, so I have a button that leads to nowhere :D
-
Zash
count and index, if you are lucky
-
edhelas
RSM sometimes be like
-
Zash
wouldn't the Modern UX be to just scroll and load pages dynamically?
-
edhelas
http://e.lvme.me/h0myodd.jpg
-
edhelas
no, I prefer to actually have proper paginaton and fixed URLs
-
Zash
and like, show a 'you reached the end' once it loads that empty page
-
edhelas
Holger maybe it's a non-covered case in ejabberd's RSM ?
-
flow
I think a optional 'end-of-result-set' attribute could be added to RSM✎ -
flow
I think an optional 'end-of-result-set' attribute could be added to RSM ✏
-
edhelas
yes, that extra IQ is an UX problem in some cases :)
-
Zash
If you get 10 items + `<{rsm}set><first index='991'/><count>1000</count></set>` then you can guess that this is the last page
-
Zash
(assuming I did the off-by-one bug in the right way)
-
Zash
(I probably did not...)
-
Zash
Another fun edge case: If the results change while you are paging
-
edhelas
oh yes, I actually have it :) no idea how I'll handle that
-
edhelas
"stop publishing, i'm currently paginating"
-
Zash
If the item that you are about to reference in `<after>` gets removed... I bet that's fun.
-
Zash
Items added in the middle of pages shouldn't matter much.
-
obscurelemon
huh
-
Ingolf
Hello, I have a rather unusual question. But I'll just give it a try, sometimes the world is a village. Does anyone here have contact with a good, perhaps well-known, clarinet player? Giora Feidman would be absolutely great. If this question seems too stupid, please just read it over. If not, I am grateful for answers, also gladly as PN.
-
Holger
Are there any rules as to what presence should be shown if my contact is online with multiple clients? (Now that nobody is interested in presence anymore, I forgot these things.)
-
Holger
I.e., "last one wins", "most available", or something else? Or just implementation-defined?
-
Sam
Busy/Online/Away in that order are what I was doing at some point, I think
-
Holger
Sam: Sounds like you're not aware of specs making suggestions, either?
-
Sam
Not that I can recall; I might have gotten that order from somewhere ages ago, but I dunno
-
Holger
Ok, thanks.
-
Holger
("Online" is somewhere in the middle of "busy" and "away"?)
-
Sam
Yes; if you have one client online and the other away, I imagine that means "the desktop is away but the phone is online" or something along those lines so online wins. If you have anything set to busy that likely means "I don't want to be interrupted but might have forgotten to set all my clients" so that one wins.
-
Holger
Ah!
-
Zash
Do _you_ want to write the XEP of presence in PEP?
-
Holger
🤫
-
lovetox
i agree with Sam, that sounds sane