diff --git a/lib/src/Event.dart b/lib/src/Event.dart index d42cf66..68fa1f9 100644 --- a/lib/src/Event.dart +++ b/lib/src/Event.dart @@ -73,7 +73,11 @@ class Event { String get formattedText => content["formatted_body"] ?? ""; /// Use this to get the body. - String getBody () => formattedText ?? text ?? "*** Unable to parse Content ***"; + String getBody () { + if (formattedText != "") return formattedText; + if (text != "") return text; + return "*** Unable to parse Content ***"; + } /// Get the real type. EventTypes get type {