mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-17 11:08:06 +00:00
dis/enable to send messages when leaving/entering a chat room
This commit is contained in:
parent
cf774e9b6d
commit
5f2669bdfc
1 changed files with 4 additions and 5 deletions
|
|
@ -137,10 +137,8 @@ static UICompositeViewDescription *compositeDescription = nil;
|
|||
|
||||
[self updateParticipantLabel];
|
||||
|
||||
if (linphone_chat_room_get_state(_chatRoom) == LinphoneChatRoomStateTerminated) {
|
||||
_messageField.editable = false;
|
||||
_messageView.userInteractionEnabled = false;
|
||||
}
|
||||
_messageField.editable = !(linphone_chat_room_get_state(_chatRoom) == LinphoneChatRoomStateTerminated);
|
||||
_messageView.userInteractionEnabled = !(linphone_chat_room_get_state(_chatRoom) == LinphoneChatRoomStateTerminated);
|
||||
}
|
||||
|
||||
- (void)viewWillDisappear:(BOOL)animated {
|
||||
|
|
@ -708,7 +706,8 @@ 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));
|
||||
if (view) {};
|
||||
view.messageField.editable = (newState == LinphoneChatRoomStateCreated);
|
||||
view.messageView.userInteractionEnabled = (newState == LinphoneChatRoomStateCreated);
|
||||
}
|
||||
|
||||
void on_chat_room_subject_changed(LinphoneChatRoom *cr, const LinphoneEventLog *event_log) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue