Added expires_at filter in message pipeline#403
Open
kushagra0902 wants to merge 1 commit intocameri:mainfrom
Open
Added expires_at filter in message pipeline#403kushagra0902 wants to merge 1 commit intocameri:mainfrom
kushagra0902 wants to merge 1 commit intocameri:mainfrom
Conversation
cameri
reviewed
Apr 9, 2026
cameri
reviewed
Apr 9, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This PR adds an expires_at filter in the message pipeline. This ensures that the events that are expired will not be given to the users
Related Issue
#401
Motivation and Context
Earlier, only the deleted_At filter was used in the message pipeline. This made users get expired events also. This poses a problem, especially in gift-wrapped events.
How Has This Been Tested?
Both manual and unit testing have been performed. A relay server was spun up, and messages with the expires_At field were sent and then retrieved after expiry time. The behaviour matched the expected behaviour. All the older tests, EsLint checks and new tests were run and tested.
Screenshots (if appropriate):
N/A
Types of changes
Checklist: