(options = {})
| 310 | let lastSpokenNo = 0; |
| 311 | |
| 312 | export function buildStateRequestPayload(options = {}) { |
| 313 | const { forceFull = false } = options || {}; |
| 314 | const timezone = getUserTimezone(); |
| 315 | return { |
| 316 | context: context || null, |
| 317 | log_from: forceFull ? 0 : lastLogVersion, |
| 318 | notifications_from: forceFull ? 0 : notificationStore.lastNotificationVersion || 0, |
| 319 | timezone, |
| 320 | }; |
| 321 | } |
| 322 | |
| 323 | export async function applySnapshot(snapshot, options = {}) { |
| 324 | const { touchConnectionStatus = false, onLogGuidReset = null } = options || {}; |
no test coverage detected