UI/UX: messages
- remove timelines
- change failed messages ui
- remove empty lines in the messages
- support urls
Change-Id: I100665ec7839261fda07f70ad9bac121af3d7083
Reviewed-by: Andreas Traczyk <andreas.traczyk@savoirfairelinux.com>
diff --git a/src/ChatVC.mm b/src/ChatVC.mm
index 895e02c..b902e75 100644
--- a/src/ChatVC.mm
+++ b/src/ChatVC.mm
@@ -21,6 +21,7 @@
#import "ChatVC.h"
#import "MessagesVC.h"
+#import "NSString+Extensions.h"
@interface ChatVC ()
{
@@ -62,6 +63,10 @@
[self.view.window makeFirstResponder:self.messageField];
}
+- (void)setMessage:(NSString *)newValue {
+ _message = [newValue removeEmptyLinesAtBorders];
+}
+
- (IBAction)sendMessage:(id)sender {
/* make sure there is text to send */
NSString* text = self.message;