Add system messages for avatar set/removed

Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
This commit is contained in:
Marcel Hibbe 2023-04-25 11:07:08 +02:00
parent 3dc3bf0cf8
commit 1368f70d1f
No known key found for this signature in database
GPG key ID: C793F8B59F43CE7B
2 changed files with 9 additions and 1 deletions

View file

@ -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 {

View file

@ -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<ChatMessage.Syst
"recording_failed" -> 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<ChatMessage.Syst
RECORDING_FAILED -> "recording_failed"
BREAKOUT_ROOMS_STARTED -> "breakout_rooms_started"
BREAKOUT_ROOMS_STOPPED -> "breakout_rooms_stopped"
AVATAR_SET -> "avatar_set"
AVATAR_REMOVED -> "avatar_removed"
else -> ""
}
}