mirror of
https://github.com/nextcloud/talk-android
synced 2025-06-19 11:39:42 +01:00
call API only when status is in DND mode
Signed-off-by: sowjanyakch <sowjanya.kch@gmail.com>
This commit is contained in:
parent
10e88f1e17
commit
e6e294096b
@ -616,7 +616,8 @@ class ChatActivity :
|
||||
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 ->
|
||||
chatViewModel.outOfOfficeStatusOfUser(credentials, user.baseUrl!!, currentConversation!!.displayName)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user