Bluesky app fork with some witchin' additions 💫
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix:Conversations don't refresh when going offline and back online (#7985)

authored by

omar0404 and committed by
GitHub
1b871929 dba6f4bb

+8 -3
+8 -3
src/state/messages/events/agent.ts
··· 208 208 } 209 209 case MessagesEventBusStatus.Error: { 210 210 switch (action.event) { 211 - case MessagesEventBusDispatchEvent.UpdatePoll: 212 - case MessagesEventBusDispatchEvent.Resume: { 211 + case MessagesEventBusDispatchEvent.UpdatePoll: { 213 212 // basically reset 214 213 this.status = MessagesEventBusStatus.Initializing 215 214 this.latestRev = undefined 216 215 this.init() 216 + break 217 + } 218 + case MessagesEventBusDispatchEvent.Resume: { 219 + this.status = MessagesEventBusStatus.Ready 220 + this.resetPoll() 221 + this.emitter.emit('event', {type: 'connect'}) 217 222 break 218 223 } 219 224 } ··· 329 334 330 335 try { 331 336 const response = await networkRetry(2, () => { 332 - return this.agent.api.chat.bsky.convo.getLog( 337 + return this.agent.chat.bsky.convo.getLog( 333 338 { 334 339 cursor: this.latestRev, 335 340 },