mirror of
https://github.com/nextcloud/talk-android
synced 2025-06-20 03:59:35 +01:00
Add system messages for avatar set/removed
Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
This commit is contained in:
parent
3dc3bf0cf8
commit
1368f70d1f
@ -536,7 +536,9 @@ data class ChatMessage(
|
|||||||
AUDIO_RECORDING_STOPPED,
|
AUDIO_RECORDING_STOPPED,
|
||||||
RECORDING_FAILED,
|
RECORDING_FAILED,
|
||||||
BREAKOUT_ROOMS_STARTED,
|
BREAKOUT_ROOMS_STARTED,
|
||||||
BREAKOUT_ROOMS_STOPPED
|
BREAKOUT_ROOMS_STOPPED,
|
||||||
|
AVATAR_SET,
|
||||||
|
AVATAR_REMOVED
|
||||||
}
|
}
|
||||||
|
|
||||||
companion object {
|
companion object {
|
||||||
|
@ -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
|
||||||
import com.nextcloud.talk.models.json.chat.ChatMessage.SystemMessageType.AUDIO_RECORDING_STARTED
|
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.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_STARTED
|
||||||
import com.nextcloud.talk.models.json.chat.ChatMessage.SystemMessageType.BREAKOUT_ROOMS_STOPPED
|
import com.nextcloud.talk.models.json.chat.ChatMessage.SystemMessageType.BREAKOUT_ROOMS_STOPPED
|
||||||
import com.nextcloud.talk.models.json.chat.ChatMessage.SystemMessageType.CALL_ENDED
|
import com.nextcloud.talk.models.json.chat.ChatMessage.SystemMessageType.CALL_ENDED
|
||||||
@ -147,6 +149,8 @@ class EnumSystemMessageTypeConverter : StringBasedTypeConverter<ChatMessage.Syst
|
|||||||
"recording_failed" -> RECORDING_FAILED
|
"recording_failed" -> RECORDING_FAILED
|
||||||
"breakout_rooms_started" -> BREAKOUT_ROOMS_STARTED
|
"breakout_rooms_started" -> BREAKOUT_ROOMS_STARTED
|
||||||
"breakout_rooms_stopped" -> BREAKOUT_ROOMS_STOPPED
|
"breakout_rooms_stopped" -> BREAKOUT_ROOMS_STOPPED
|
||||||
|
"avatar_set" -> AVATAR_SET
|
||||||
|
"avatar_removed" -> AVATAR_REMOVED
|
||||||
else -> DUMMY
|
else -> DUMMY
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -211,6 +215,8 @@ class EnumSystemMessageTypeConverter : StringBasedTypeConverter<ChatMessage.Syst
|
|||||||
RECORDING_FAILED -> "recording_failed"
|
RECORDING_FAILED -> "recording_failed"
|
||||||
BREAKOUT_ROOMS_STARTED -> "breakout_rooms_started"
|
BREAKOUT_ROOMS_STARTED -> "breakout_rooms_started"
|
||||||
BREAKOUT_ROOMS_STOPPED -> "breakout_rooms_stopped"
|
BREAKOUT_ROOMS_STOPPED -> "breakout_rooms_stopped"
|
||||||
|
AVATAR_SET -> "avatar_set"
|
||||||
|
AVATAR_REMOVED -> "avatar_removed"
|
||||||
else -> ""
|
else -> ""
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user