add system messages for call recording

Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
This commit is contained in:
Marcel Hibbe 2022-12-05 14:50:40 +01:00
parent c663035080
commit 17f8144dc7
No known key found for this signature in database
GPG key ID: C793F8B59F43CE7B
2 changed files with 8 additions and 0 deletions

View file

@ -518,6 +518,8 @@ data class ChatMessage(
POLL_CLOSED,
MESSAGE_EXPIRATION_ENABLED,
MESSAGE_EXPIRATION_DISABLED,
RECORDING_STARTED,
RECORDING_STOPPED,
}
companion object {

View file

@ -74,6 +74,8 @@ import com.nextcloud.talk.models.json.chat.ChatMessage.SystemMessageType.REACTIO
import com.nextcloud.talk.models.json.chat.ChatMessage.SystemMessageType.REACTION_REVOKED
import com.nextcloud.talk.models.json.chat.ChatMessage.SystemMessageType.READ_ONLY
import com.nextcloud.talk.models.json.chat.ChatMessage.SystemMessageType.READ_ONLY_OFF
import com.nextcloud.talk.models.json.chat.ChatMessage.SystemMessageType.RECORDING_STARTED
import com.nextcloud.talk.models.json.chat.ChatMessage.SystemMessageType.RECORDING_STOPPED
import com.nextcloud.talk.models.json.chat.ChatMessage.SystemMessageType.USER_ADDED
import com.nextcloud.talk.models.json.chat.ChatMessage.SystemMessageType.USER_REMOVED
@ -175,6 +177,8 @@ class EnumSystemMessageTypeConverter : StringBasedTypeConverter<ChatMessage.Syst
"poll_closed" -> POLL_CLOSED
"message_expiration_enabled" -> MESSAGE_EXPIRATION_ENABLED
"message_expiration_disabled" -> MESSAGE_EXPIRATION_DISABLED
"recording_started" -> RECORDING_STARTED
"recording_stopped" -> RECORDING_STOPPED
else -> DUMMY
}
}
@ -232,6 +236,8 @@ class EnumSystemMessageTypeConverter : StringBasedTypeConverter<ChatMessage.Syst
POLL_CLOSED -> "poll_closed"
MESSAGE_EXPIRATION_ENABLED -> "message_expiration_enabled"
MESSAGE_EXPIRATION_DISABLED -> "message_expiration_disabled"
RECORDING_STARTED -> "recording_started"
RECORDING_STOPPED -> "recording_stopped"
else -> ""
}
}