Skip to content

Commit

Permalink
fixed issue with casting message timestamps
Browse files Browse the repository at this point in the history
  • Loading branch information
MaikuB committed May 1, 2024
1 parent 5e7d4ee commit 85e4822
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
3 changes: 3 additions & 0 deletions flutter_local_notifications/CHANGELOG.md
@@ -1,3 +1,6 @@
## [17.1.1]

* [Android] fixes issue [#2299](https://github.com/MaikuB/flutter_local_notifications/issues/2299) where within the range of the max integer value of epoch time passed to a messaging style would result in a casting exception

## [17.1.0]

Expand Down
Expand Up @@ -457,8 +457,7 @@ private static ArrayList<MessageDetails> readMessages(ArrayList<Map<String, Obje
for (Map<String, Object> messageData : messages) {
result.add(
new MessageDetails(
(String) messageData.get(TEXT),
(Long) messageData.get(TIMESTAMP),
(String) messageData.get(TEXT), LongUtils.parseLong(messageData.get(TIMESTAMP)),
readPersonDetails((Map<String, Object>) messageData.get(PERSON)),
(String) messageData.get(DATA_MIME_TYPE),
(String) messageData.get(DATA_URI)));
Expand Down
2 changes: 1 addition & 1 deletion flutter_local_notifications/pubspec.yaml
Expand Up @@ -2,7 +2,7 @@ name: flutter_local_notifications
description: A cross platform plugin for displaying and scheduling local
notifications for Flutter applications with the ability to customise for each
platform.
version: 17.1.0
version: 17.1.1
homepage: https://github.com/MaikuB/flutter_local_notifications/tree/master/flutter_local_notifications
issue_tracker: https://github.com/MaikuB/flutter_local_notifications/issues

Expand Down

0 comments on commit 85e4822

Please sign in to comment.