From a71cf8e92cbf4e517d45d5633c672177f6830da3 Mon Sep 17 00:00:00 2001 From: ismailgulek Date: Fri, 3 Dec 2021 00:41:01 +0300 Subject: [PATCH] Specify event formatting was successful --- Riot/Utils/EventFormatter.m | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Riot/Utils/EventFormatter.m b/Riot/Utils/EventFormatter.m index b8e156c8d..f30939e67 100644 --- a/Riot/Utils/EventFormatter.m +++ b/Riot/Utils/EventFormatter.m @@ -88,6 +88,12 @@ static NSString *const kEventFormatterTimeFormat = @"HH:mm"; NSMutableAttributedString *result = [[NSMutableAttributedString alloc] initWithAttributedString:imageString]; [result appendAttributedString:attrString]; + + if (error) + { + *error = MXKEventFormatterErrorNone; + } + return result; } }