sc (low prio): rotate and clean signed prekeys
signal-android does the following:
- every 2 days it rotates signed prekeys:
- scheduler:https://github.com/signalapp/Signal-Android/blob/master/app/src/main/java/org/thoughtcrime/securesms/service/RotateSignedPreKeyListener.java#L15
- rotation job: https://github.com/signalapp/Signal-Android/blob/master/app/src/main/java/org/thoughtcrime/securesms/jobs/RotateSignedPreKeyJob.java#L52-L66
- this in turn:
- immediately triggers a
CleanSignedPrekeysJob
which deletes all local copies of signed prekeys that are more than 30 days old: https://github.com/signalapp/Signal-Android/blob/master/app/src/main/java/org/thoughtcrime/securesms/jobs/CleanPreKeysJob.java#L53-L88 - sets a delayed trigger to publish new one-time prekeys that will be triggered the next time the refresh prekey job runs (either b/c new message arrived or 3 days have passed) to notice that there are not enough one-time-prekeys on the server signed with the currently active signed prekey, and publish some new ones (?)
- immediately triggers a
Edited by aguestuser