diff --git a/app/src/main/java/com/nextcloud/talk/models/json/chat/ChatMessage.kt b/app/src/main/java/com/nextcloud/talk/models/json/chat/ChatMessage.kt index b8045faf3..73c3e66c1 100644 --- a/app/src/main/java/com/nextcloud/talk/models/json/chat/ChatMessage.kt +++ b/app/src/main/java/com/nextcloud/talk/models/json/chat/ChatMessage.kt @@ -536,7 +536,9 @@ data class ChatMessage( AUDIO_RECORDING_STOPPED, RECORDING_FAILED, BREAKOUT_ROOMS_STARTED, - BREAKOUT_ROOMS_STOPPED + BREAKOUT_ROOMS_STOPPED, + AVATAR_SET, + AVATAR_REMOVED } companion object { diff --git a/app/src/main/java/com/nextcloud/talk/models/json/converters/EnumSystemMessageTypeConverter.kt b/app/src/main/java/com/nextcloud/talk/models/json/converters/EnumSystemMessageTypeConverter.kt index 0722d1b53..9fe1a36b3 100644 --- a/app/src/main/java/com/nextcloud/talk/models/json/converters/EnumSystemMessageTypeConverter.kt +++ b/app/src/main/java/com/nextcloud/talk/models/json/converters/EnumSystemMessageTypeConverter.kt @@ -28,6 +28,8 @@ import com.bluelinelabs.logansquare.typeconverters.StringBasedTypeConverter import com.nextcloud.talk.models.json.chat.ChatMessage import com.nextcloud.talk.models.json.chat.ChatMessage.SystemMessageType.AUDIO_RECORDING_STARTED import com.nextcloud.talk.models.json.chat.ChatMessage.SystemMessageType.AUDIO_RECORDING_STOPPED +import com.nextcloud.talk.models.json.chat.ChatMessage.SystemMessageType.AVATAR_REMOVED +import com.nextcloud.talk.models.json.chat.ChatMessage.SystemMessageType.AVATAR_SET import com.nextcloud.talk.models.json.chat.ChatMessage.SystemMessageType.BREAKOUT_ROOMS_STARTED import com.nextcloud.talk.models.json.chat.ChatMessage.SystemMessageType.BREAKOUT_ROOMS_STOPPED import com.nextcloud.talk.models.json.chat.ChatMessage.SystemMessageType.CALL_ENDED @@ -147,6 +149,8 @@ class EnumSystemMessageTypeConverter : StringBasedTypeConverter RECORDING_FAILED "breakout_rooms_started" -> BREAKOUT_ROOMS_STARTED "breakout_rooms_stopped" -> BREAKOUT_ROOMS_STOPPED + "avatar_set" -> AVATAR_SET + "avatar_removed" -> AVATAR_REMOVED else -> DUMMY } } @@ -211,6 +215,8 @@ class EnumSystemMessageTypeConverter : StringBasedTypeConverter "recording_failed" BREAKOUT_ROOMS_STARTED -> "breakout_rooms_started" BREAKOUT_ROOMS_STOPPED -> "breakout_rooms_stopped" + AVATAR_SET -> "avatar_set" + AVATAR_REMOVED -> "avatar_removed" else -> "" } }