mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-17 11:08:06 +00:00
UI enhancement
This commit is contained in:
parent
50a645e4d8
commit
dc5de5eb45
1 changed files with 4 additions and 2 deletions
|
|
@ -137,8 +137,9 @@ static UICompositeViewDescription *compositeDescription = nil;
|
|||
|
||||
[self updateParticipantLabel];
|
||||
|
||||
_messageField.editable = !(linphone_chat_room_get_state(_chatRoom) == LinphoneChatRoomStateTerminated);
|
||||
_messageView.userInteractionEnabled = !(linphone_chat_room_get_state(_chatRoom) == LinphoneChatRoomStateTerminated);
|
||||
_messageField.editable = (linphone_chat_room_get_state(_chatRoom) == LinphoneChatRoomStateCreated);
|
||||
_pictureButton.enabled = (linphone_chat_room_get_state(_chatRoom) == LinphoneChatRoomStateCreated);
|
||||
_messageView.userInteractionEnabled = (linphone_chat_room_get_state(_chatRoom) == LinphoneChatRoomStateCreated);
|
||||
}
|
||||
|
||||
- (void)viewWillDisappear:(BOOL)animated {
|
||||
|
|
@ -707,6 +708,7 @@ static UICompositeViewDescription *compositeDescription = nil;
|
|||
void on_chat_room_state_changed(LinphoneChatRoom *cr, LinphoneChatRoomState newState) {
|
||||
ChatConversationView *view = (__bridge ChatConversationView *)linphone_chat_room_cbs_get_user_data(linphone_chat_room_get_callbacks(cr));
|
||||
view.messageField.editable = (newState == LinphoneChatRoomStateCreated);
|
||||
view.pictureButton.enabled = (newState == LinphoneChatRoomStateCreated);
|
||||
view.messageView.userInteractionEnabled = (newState == LinphoneChatRoomStateCreated);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue