You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
handle edge case when logging just-made-public room
there was a bug when a room is made public, then < 10 messages are posted, and we run, then we run again: it would end up trying to query membership before the room was made public, which throws
unfortunately I don't see a good way to avoid the scenario except to keep track of how many messages have been posted, which is pretty gross
so just try/catch I guess
// if we failed to get members, it's probably because our `lastSeenId` was within `contextLimit` events of the history event, so the context's start token is before we are allowed to query
235
+
// (unfortunately there's no good way to know that without just trying it, as far as I can tell)
236
+
// we were only fetching nonzero events as an optimization
0 commit comments