add different object types for phone

Signed-off-by: sowjanyakch <sowjanya.kch@gmail.com>
This commit is contained in:
sowjanyakch 2025-05-21 12:11:55 +02:00 committed by Marcel Hibbe
parent 354b107e1c
commit ab8a41182a
No known key found for this signature in database
GPG Key ID: C793F8B59F43CE7B
3 changed files with 7 additions and 4 deletions

View File

@ -684,7 +684,7 @@ class ChatActivity :
}
}
if (currentConversation?.objectId == "phone" &&
if (currentConversation?.objectType == ConversationEnums.ObjectType.PHONE_TEMPORARY &&
hasSpreedFeatureCapability(
conversationUser?.capabilities!!.spreedCapability!!,
SpreedFeatures.UNBIND_CONVERSATION

View File

@ -45,7 +45,8 @@ class ConversationEnums {
FILE,
ROOM,
EVENT,
PHONE,
PHONE_TEMPORARY,
PHONE_PERSIST,
INSTANT_MEETING
}
}

View File

@ -16,7 +16,8 @@ class ConversationObjectTypeConverter : StringBasedTypeConverter<ConversationEnu
"room" -> ConversationEnums.ObjectType.ROOM
"file" -> ConversationEnums.ObjectType.FILE
"event" -> ConversationEnums.ObjectType.EVENT
"phone" -> ConversationEnums.ObjectType.PHONE
"phone_persist" -> ConversationEnums.ObjectType.PHONE_PERSIST
"phone_temporary" -> ConversationEnums.ObjectType.PHONE_TEMPORARY
"instant_meeting" -> ConversationEnums.ObjectType.INSTANT_MEETING
else -> ConversationEnums.ObjectType.DEFAULT
}
@ -32,7 +33,8 @@ class ConversationObjectTypeConverter : StringBasedTypeConverter<ConversationEnu
ConversationEnums.ObjectType.ROOM -> "room"
ConversationEnums.ObjectType.FILE -> "file"
ConversationEnums.ObjectType.EVENT -> "event"
ConversationEnums.ObjectType.PHONE -> "phone"
ConversationEnums.ObjectType.PHONE_PERSIST -> "phone_persist"
ConversationEnums.ObjectType.PHONE_TEMPORARY -> "phone_temporary"
ConversationEnums.ObjectType.INSTANT_MEETING -> "instant_meeting"
else -> ""
}