Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fbddd2c3 authored by Adrian Roos's avatar Adrian Roos
Browse files

Fix broken MessagingStyle

Messages with a "null" sender indicating a message from
the local user did not correctly unparcel.

Change-Id: I7d42d5dc407ebd8d1e3b5451f72f52cc1543a32d
Fixes: 28763122
parent de5a7afc
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -4726,8 +4726,7 @@ public class Notification implements Parcelable

            static Message getMessageFromBundle(Bundle bundle) {
                try {
                    if (!bundle.containsKey(KEY_TEXT) || !bundle.containsKey(KEY_TIMESTAMP) ||
                            !bundle.containsKey(KEY_SENDER)) {
                    if (!bundle.containsKey(KEY_TEXT) || !bundle.containsKey(KEY_TIMESTAMP)) {
                        return null;
                    } else {
                        Message message = new Message(bundle.getCharSequence(KEY_TEXT),