Commit fc203d7c authored by Benjamin REIS's avatar Benjamin REIS
Browse files

refactor weird code

parent c30c9bab
No related merge requests found
Showing with 1 addition and 2 deletions
...@@ -297,8 +297,7 @@ LinphoneChatRoomCapabilitiesMask linphone_chat_room_get_capabilities (const Linp ...@@ -297,8 +297,7 @@ LinphoneChatRoomCapabilitiesMask linphone_chat_room_get_capabilities (const Linp
} }
bool_t linphone_chat_room_has_capability(const LinphoneChatRoom *cr, int mask) { bool_t linphone_chat_room_has_capability(const LinphoneChatRoom *cr, int mask) {
if (L_GET_CPP_PTR_FROM_C_OBJECT(cr)->getCapabilities() & mask) return true; return L_GET_CPP_PTR_FROM_C_OBJECT(cr)->getCapabilities() & mask;
return false;
} }
const LinphoneAddress *linphone_chat_room_get_conference_address (const LinphoneChatRoom *cr) { const LinphoneAddress *linphone_chat_room_get_conference_address (const LinphoneChatRoom *cr) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment