Archiving of messages and stripping of spoofed archive-ids happens at the same event priority, so the order is undefined.
If the stripping happens after archiving then the archive id added during archiving gets removed as it (correctly) claims to be from the current server.
Archiving of messages and stripping of spoofed archive-ids happens at the same event priority, so the order is undefined. If the stripping happens after archiving then the archive id added during archiving gets removed as it (correctly) claims to be from the current server.
Fixed in https://hg.prosody.im/0.11/rev/c6e852984d48
Changes