- onMessageReceived now calls MatrixSession.getInstance() so the session initializes and the sync loop starts in FCM-woken processes (the critical missing piece — without this, a fresh process never ran any sync) - Replace global lastSyncTimestamp with per-room lastMsgTsPerRoom persisted in prefs as last_msg_ts; correctly identifies new messages after restart regardless of room history size, without clock-skew issues - Seed lastMsgTsPerRoom in processSyncResponse else branch on first login; save to prefs in isFirstSync block and after every subsequent sync - Fix deferred notification filter: use >= instead of > so messages whose timestamp equals the stored value are included after key arrival - Change notification title from room name to sender display name Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| java/com/ltadeu6/matrix | ||
| jniLibs | ||
| res | ||
| AndroidManifest.xml | ||