mirror of
https://github.com/nextcloud/talk-android
synced 2025-06-19 19:49:33 +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
|
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)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user