call API only when status is in DND mode

Signed-off-by: sowjanyakch <sowjanya.kch@gmail.com>
This commit is contained in:
sowjanyakch 2024-12-04 17:13:32 +01:00
parent 10e88f1e17
commit e6e294096b
No known key found for this signature in database
GPG Key ID: F7AA2A8B65B50220

View File

@ -616,7 +616,8 @@ class ChatActivity :
urlForChatting urlForChatting
) )
if(currentConversation?.type == ConversationEnums.ConversationType.ROOM_TYPE_ONE_TO_ONE_CALL){ if(currentConversation?.type == ConversationEnums.ConversationType.ROOM_TYPE_ONE_TO_ONE_CALL &&
currentConversation?.status == "dnd"){
conversationUser?.let{ user -> conversationUser?.let{ user ->
chatViewModel.outOfOfficeStatusOfUser(credentials, user.baseUrl!!, currentConversation!!.displayName) chatViewModel.outOfOfficeStatusOfUser(credentials, user.baseUrl!!, currentConversation!!.displayName)
} }