mirror of
https://github.com/nextcloud/talk-android
synced 2025-03-08 23:19:55 +00:00
add system messages for message expiration
Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
This commit is contained in:
parent
b40fab9826
commit
77f69a676b
@ -484,7 +484,9 @@ data class ChatMessage(
|
||||
REACTION_DELETED,
|
||||
REACTION_REVOKED,
|
||||
POLL_VOTED,
|
||||
POLL_CLOSED
|
||||
POLL_CLOSED,
|
||||
MESSAGE_EXPIRATION_ENABLED,
|
||||
MESSAGE_EXPIRATION_DISABLED,
|
||||
}
|
||||
|
||||
companion object {
|
||||
|
@ -60,6 +60,8 @@ import com.nextcloud.talk.models.json.chat.ChatMessage.SystemMessageType.MATTERB
|
||||
import com.nextcloud.talk.models.json.chat.ChatMessage.SystemMessageType.MATTERBRIDGE_CONFIG_ENABLED
|
||||
import com.nextcloud.talk.models.json.chat.ChatMessage.SystemMessageType.MATTERBRIDGE_CONFIG_REMOVED
|
||||
import com.nextcloud.talk.models.json.chat.ChatMessage.SystemMessageType.MESSAGE_DELETED
|
||||
import com.nextcloud.talk.models.json.chat.ChatMessage.SystemMessageType.MESSAGE_EXPIRATION_DISABLED
|
||||
import com.nextcloud.talk.models.json.chat.ChatMessage.SystemMessageType.MESSAGE_EXPIRATION_ENABLED
|
||||
import com.nextcloud.talk.models.json.chat.ChatMessage.SystemMessageType.MODERATOR_DEMOTED
|
||||
import com.nextcloud.talk.models.json.chat.ChatMessage.SystemMessageType.MODERATOR_PROMOTED
|
||||
import com.nextcloud.talk.models.json.chat.ChatMessage.SystemMessageType.OBJECT_SHARED
|
||||
@ -171,6 +173,8 @@ class EnumSystemMessageTypeConverter : StringBasedTypeConverter<ChatMessage.Syst
|
||||
"reaction_revoked" -> REACTION_REVOKED
|
||||
"poll_voted" -> POLL_VOTED
|
||||
"poll_closed" -> POLL_CLOSED
|
||||
"message_expiration_enabled" -> MESSAGE_EXPIRATION_ENABLED
|
||||
"message_expiration_disabled" -> MESSAGE_EXPIRATION_DISABLED
|
||||
else -> DUMMY
|
||||
}
|
||||
}
|
||||
@ -226,6 +230,8 @@ class EnumSystemMessageTypeConverter : StringBasedTypeConverter<ChatMessage.Syst
|
||||
REACTION_REVOKED -> "reaction_revoked"
|
||||
POLL_VOTED -> "poll_voted"
|
||||
POLL_CLOSED -> "poll_closed"
|
||||
MESSAGE_EXPIRATION_ENABLED -> "message_expiration_enabled"
|
||||
MESSAGE_EXPIRATION_DISABLED -> "message_expiration_disabled"
|
||||
else -> ""
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user