-
Notifications
You must be signed in to change notification settings - Fork 149
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Truncate large values inside of Firebase notification body fields. (#386
) * Truncate large fields within gcm notification body * Add changelog entry * Fix terminology * Add ellipsis add end of truncated content fields * Add ellipsis after full max bytes since it's an arbitrary size anyway * Add warning log when firebase notification contains too many large fields * Use proper ellipsis Co-authored-by: Erik Johnston <erik@matrix.org> * Fix new ellipsis tests * Add unicode support when truncating large fields * Remove redundant bytes conversion during truncation * Add docs for truncate_str * Clarify func docs * Remove whitespace * Use Tuple instead of tuple in type signature --------- Co-authored-by: Erik Johnston <erik@matrix.org>
- Loading branch information
1 parent
5d9e2e2
commit 0b6717c
Showing
4 changed files
with
243 additions
and
2 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Truncate large values inside of Firebase notification content fields. |
This file contains 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
This file contains 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
This file contains 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