Chat Screen: Improve Room header

- add topic in preview header
- remove new line characters in topic string
- collapse expander header when user scrolls it down.
This commit is contained in:
giomfo
2016-04-19 15:28:15 +02:00
parent dd4327b9ab
commit 7abcadf0e6
8 changed files with 136 additions and 68 deletions
@@ -43,7 +43,7 @@
#define ROOM_SECTION_MUTE_NOTIFICATIONS 4
#define ROOM_SECTION_COUNT 5
#define ROOM_TOPIC_CELL_HEIGHT 99
#define ROOM_TOPIC_CELL_HEIGHT 124
@interface RoomSettingsViewController ()
{
@@ -630,9 +630,11 @@
}
roomTopicCell.mxkTextView.tintColor = kVectorColorGreen;
roomTopicCell.mxkTextView.font = [UIFont systemFontOfSize:16];
roomTopicCell.mxkTextView.bounces = NO;
roomTopicCell.mxkTextView.delegate = self;
// disable the edition if the user cannoy update it
// disable the edition if the user cannot update it
roomTopicCell.mxkTextView.editable = mxRoom.isModerator;
roomTopicCell.mxkTextView.textColor = kVectorTextColorGray;