Commit 53fb8c8
committed
fix(messaging, android): properly shrink stored messages to limit
previously, stored messages were cleared one at a time each time a message
came in, opening the possibility that the store would contain more messages
then the limit and never get back down to the limit.
now it will attempt to shrink down to the limit every time a message comes in
ensuring that if there is an over limit condition it will be fixed quickly1 parent 336901b commit 53fb8c8
File tree
1 file changed
+2
-1
lines changed- packages/messaging/android/src/main/java/io/invertase/firebase/messaging
1 file changed
+2
-1
lines changedLines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
| 39 | + | |
40 | 40 | | |
| 41 | + | |
41 | 42 | | |
42 | 43 | | |
43 | 44 | | |
| |||
0 commit comments