mirror of
https://github.com/nextcloud/talk-android
synced 2025-06-20 03:59:35 +01:00
add system messages for reactions
Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
This commit is contained in:
parent
6c5614fab7
commit
2986f7c3a5
@ -90,6 +90,8 @@ public class ChatMessage implements MessageContentType, MessageContentType.Image
|
||||
public Enum<ReadStatus> readStatus = ReadStatus.NONE;
|
||||
@JsonField(name = "messageType")
|
||||
public String messageType;
|
||||
@JsonField(name = "reactions")
|
||||
public HashMap<String, Integer> reactions;
|
||||
|
||||
public boolean isDownloadingVoiceMessage;
|
||||
public boolean resetVoiceMessage;
|
||||
@ -657,6 +659,9 @@ public class ChatMessage implements MessageContentType, MessageContentType.Image
|
||||
MATTERBRIDGE_CONFIG_REMOVED,
|
||||
MATTERBRIDGE_CONFIG_ENABLED,
|
||||
MATTERBRIDGE_CONFIG_DISABLED,
|
||||
CLEARED_CHAT
|
||||
CLEARED_CHAT,
|
||||
REACTION,
|
||||
REACTION_DELETED,
|
||||
REACTION_REVOKED
|
||||
}
|
||||
}
|
||||
|
@ -65,6 +65,9 @@ import com.nextcloud.talk.models.json.chat.ChatMessage.SystemMessageType.MODERAT
|
||||
import com.nextcloud.talk.models.json.chat.ChatMessage.SystemMessageType.OBJECT_SHARED
|
||||
import com.nextcloud.talk.models.json.chat.ChatMessage.SystemMessageType.PASSWORD_REMOVED
|
||||
import com.nextcloud.talk.models.json.chat.ChatMessage.SystemMessageType.PASSWORD_SET
|
||||
import com.nextcloud.talk.models.json.chat.ChatMessage.SystemMessageType.REACTION
|
||||
import com.nextcloud.talk.models.json.chat.ChatMessage.SystemMessageType.REACTION_DELETED
|
||||
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.USER_ADDED
|
||||
@ -161,6 +164,9 @@ class EnumSystemMessageTypeConverter : StringBasedTypeConverter<ChatMessage.Syst
|
||||
"matterbridge_config_enabled" -> return MATTERBRIDGE_CONFIG_ENABLED
|
||||
"matterbridge_config_disabled" -> return MATTERBRIDGE_CONFIG_DISABLED
|
||||
"history_cleared" -> return CLEARED_CHAT
|
||||
"reaction" -> return REACTION
|
||||
"reaction_deleted" -> return REACTION_DELETED
|
||||
"reaction_revoked" -> return REACTION_REVOKED
|
||||
else -> return DUMMY
|
||||
}
|
||||
}
|
||||
@ -214,6 +220,9 @@ class EnumSystemMessageTypeConverter : StringBasedTypeConverter<ChatMessage.Syst
|
||||
MATTERBRIDGE_CONFIG_ENABLED -> return "matterbridge_config_enabled"
|
||||
MATTERBRIDGE_CONFIG_DISABLED -> return "matterbridge_config_disabled"
|
||||
CLEARED_CHAT -> return "clear_history"
|
||||
REACTION -> return "reaction"
|
||||
REACTION_DELETED -> return "reaction_deleted"
|
||||
REACTION_REVOKED -> return "reaction_revoked"
|
||||
else -> return ""
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user