!jxlRxnrZCsjpjDubDX:matrix.org

#matrix-dev:matrix.org

2723 Members
Dev chat for everyone building on top of Matrix | http://github.com/matrix-org547 Servers

Load older messages


SenderMessageTime
28 Mar 2024
@spaetz:sspaeth.de@spaetz:sspaeth.de
In reply to @mikoto:kurosaki.cx
where does the specification say usernames cannot start with _?
https://spec.matrix.org/v1.9/appendices/#common-namespaced-identifier-grammar
05:48:58
@spaetz:sspaeth.de@spaetz:sspaeth.de And here https://spec.matrix.org/v1.9/appendices/#user-identifiers 05:49:24
@usedususer:matrix.org@usedususer:matrix.org left the room.06:40:49
@tulir:maunium.nettulir
In reply to @spaetz:sspaeth.de
https://spec.matrix.org/v1.9/appendices/#common-namespaced-identifier-grammar
this is not related to user ids
08:27:40
@tulir:maunium.nettulir
In reply to @spaetz:sspaeth.de
And here https://spec.matrix.org/v1.9/appendices/#user-identifiers
this doesn't say anything about starting with _
08:28:20
@robin:robcrz.com@robin:robcrz.com joined the room.10:28:54
@robin:robcrz.com@robin:robcrz.com left the room.12:36:24
@spaetz:sspaeth.de@spaetz:sspaeth.de
In reply to @tulir:maunium.net
this doesn't say anything about starting with _
Identifiers must start with one of the characters [a-z], and be entirely composed of the characters [a-z], [0-9], -, _ and ..
14:56:02
@tulir:maunium.nettulir
In reply to @spaetz:sspaeth.de
Identifiers must start with one of the characters [a-z], and be entirely composed of the characters [a-z], [0-9], -, _ and ..
that's from the part that isn't related to user ids
14:56:18
@spaetz:sspaeth.de@spaetz:sspaeth.de Ahh, true. I assumed that section 4.1 'common' is also valid for rules in section 4.3 but you are right 14:57:24
@spaetz:sspaeth.de@spaetz:sspaeth.de Sorry for the confusion and thanks for clearing it up 14:57:38
@tulir:maunium.nettuliryeah it's not uncommon to get confused by those14:58:50
@tulir:maunium.nettulirnot sure how it could be made less confusing, maybe a bit more explanation of what the common namespaced identifiers are for (like giving examples of things that are those and explicitly saying that user ids and others aren't)14:59:31
@spaetz:sspaeth.de@spaetz:sspaeth.de Yeah, perhaps explicitly stating which sections or cases they apply to. I guess the blue box misled me which states 'Identifiers can and do inherit grammar from this specification.' and 4.3 is called 'User identifier'... 15:19:19
@hughns:matrix.orgHugh (backup) changed their display name from Hugh (please use @hughns:element.io instead) to Hugh (backup).18:22:08
@robb_munson:matrix.orgRobb Munson removed their profile picture.22:17:55
@elegantbeef:matrix.orgElegantbeef What is the proper api calls for syncing a client? Presently I'm calling /sync then iterating the join rooms calling /room/roomid/messages with from: "" then after the first response calling it with from: lastMessageQuery.end but I only get the same response every time it only returns the initial events and no more. 23:31:06
@spaetz:sspaeth.de@spaetz:sspaeth.de left the room.23:31:33
@tulir:maunium.nettulir
In reply to @elegantbeef:matrix.org
What is the proper api calls for syncing a client? Presently I'm calling /sync then iterating the join rooms calling /room/roomid/messages with from: "" then after the first response calling it with from: lastMessageQuery.end but I only get the same response every time it only returns the initial events and no more.
why are you calling /messages at all?
23:44:13
@elegantbeef:matrix.orgElegantbeefIs that not the proper way to query history?23:44:34
@tulir:maunium.nettuliryes, but querying history is not a part of syncing23:50:43
@elegantbeef:matrix.orgElegantbeefSo syncing is just considered the reconstructing the room information?23:54:03
@elegantbeef:matrix.orgElegantbeef * So syncing is just considered the reconstruction of room state?23:54:13
@elegantbeef:matrix.orgElegantbeefThough regardless what one want's to call it I still am not getting more messages than the original23:55:56
@tulir:maunium.nettulir
In reply to @elegantbeef:matrix.org
Though regardless what one want's to call it I still am not getting more messages than the original
I'd guess you flipped some of the parameters
23:57:48
@tulir:maunium.nettulir
In reply to @elegantbeef:matrix.org
So syncing is just considered the reconstruction of room state?
//sync returns messages
23:57:54
@tulir:maunium.nettulir
In reply to @elegantbeef:matrix.org
So syncing is just considered the reconstruction of room state?
*
23:58:01
@tulir:maunium.nettulirsync also conveniently returns a prev batch for each room to load messages older than what the sync includes23:58:50
29 Mar 2024
@elegantbeef:matrix.orgElegantbeefOk thank you. It's not working as I expect, but I'm still trying to grok this API 😄00:22:10
@p4r1d0x:matrix.orgp4r1d0x changed their profile picture.10:53:42

There are no newer messages yet.


Back to Room ListRoom Version: 4