mirror of
https://github.com/nextcloud/talk-android.git
synced 2024-11-23 13:35:33 +03:00
add system messages for call recording
Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
This commit is contained in:
parent
c663035080
commit
17f8144dc7
2 changed files with 8 additions and 0 deletions
|
@ -518,6 +518,8 @@ data class ChatMessage(
|
|||
POLL_CLOSED,
|
||||
MESSAGE_EXPIRATION_ENABLED,
|
||||
MESSAGE_EXPIRATION_DISABLED,
|
||||
RECORDING_STARTED,
|
||||
RECORDING_STOPPED,
|
||||
}
|
||||
|
||||
companion object {
|
||||
|
|
|
@ -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 -> ""
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue