28 Mar 2024 |
@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 | And here https://spec.matrix.org/v1.9/appendices/#user-identifiers | 05:49:24 |
| @usedususer:matrix.org left the room. | 06:40:49 |
tulir | 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 | 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 joined the room. | 10:28:54 |
| @robin:robcrz.com left the room. | 12:36:24 |
@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 | 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 | 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 | Sorry for the confusion and thanks for clearing it up | 14:57:38 |
tulir | yeah it's not uncommon to get confused by those | 14:58:50 |
tulir | not 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 | 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 |
| Hugh (backup) changed their display name from Hugh (please use @hughns:element.io instead) to Hugh (backup). | 18:22:08 |
| Robb Munson removed their profile picture. | 22:17:55 |
Elegantbeef | 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 left the room. | 23:31:33 |
tulir | 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 | Is that not the proper way to query history? | 23:44:34 |
tulir | yes, but querying history is not a part of syncing | 23:50:43 |
Elegantbeef | So syncing is just considered the reconstructing the room information? | 23:54:03 |
Elegantbeef | * So syncing is just considered the reconstruction of room state? | 23:54:13 |
Elegantbeef | Though regardless what one want's to call it I still am not getting more messages than the original | 23:55:56 |
tulir | 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 | In reply to @elegantbeef:matrix.org So syncing is just considered the reconstruction of room state? //sync returns messages | 23:57:54 |
tulir | In reply to @elegantbeef:matrix.org So syncing is just considered the reconstruction of room state? * | 23:58:01 |
tulir | sync also conveniently returns a prev batch for each room to load messages older than what the sync includes | 23:58:50 |
29 Mar 2024 |
Elegantbeef | Ok thank you. It's not working as I expect, but I'm still trying to grok this API 😄 | 00:22:10 |
| p4r1d0x changed their profile picture. | 10:53:42 |