File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -386,7 +386,11 @@ export async function innerHandleSwarmContentMessage({
386
386
window . log . info ( 'innerHandleSwarmContentMessage' ) ;
387
387
388
388
const content = SignalService . Content . decode ( new Uint8Array ( contentDecrypted ) ) ;
389
- if ( ! shouldProcessContentMessage ( envelope , content , false ) ) {
389
+ // This function gets called with an inbox content from a community. When that's the case,
390
+ // the messageHash is empty.
391
+ // `shouldProcessContentMessage` is a lot less strict in terms of timestamps for community messages, and needs to be.
392
+ // Not having this isCommunity flag set to true would make any incoming message from a blinded message request be dropped.
393
+ if ( ! shouldProcessContentMessage ( envelope , content , ! messageHash ) ) {
390
394
window . log . info (
391
395
`innerHandleSwarmContentMessage: dropping invalid content message ${ envelope . timestamp } `
392
396
) ;
You can’t perform that action at this time.
0 commit comments