mirror of
https://github.com/element-hq/element-android
synced 2024-11-28 13:38:49 +03:00
Merge pull request #998 from vector-im/feature/msc_2192_update_event_prefix
Use vendor prefix for non merged MSC
This commit is contained in:
commit
7d94519064
2 changed files with 5 additions and 5 deletions
|
@ -21,8 +21,8 @@ import im.vector.matrix.android.api.session.events.model.Content
|
||||||
import im.vector.matrix.android.api.session.room.model.relation.RelationDefaultContent
|
import im.vector.matrix.android.api.session.room.model.relation.RelationDefaultContent
|
||||||
|
|
||||||
// Possible values for optionType
|
// Possible values for optionType
|
||||||
const val OPTION_TYPE_POLL = "m.pool"
|
const val OPTION_TYPE_POLL = "org.matrix.poll"
|
||||||
const val OPTION_TYPE_BUTTONS = "m.buttons"
|
const val OPTION_TYPE_BUTTONS = "org.matrix.buttons"
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Polls and bot buttons are m.room.message events with a msgtype of m.options,
|
* Polls and bot buttons are m.room.message events with a msgtype of m.options,
|
||||||
|
|
|
@ -25,9 +25,9 @@ object MessageType {
|
||||||
const val MSGTYPE_VIDEO = "m.video"
|
const val MSGTYPE_VIDEO = "m.video"
|
||||||
const val MSGTYPE_LOCATION = "m.location"
|
const val MSGTYPE_LOCATION = "m.location"
|
||||||
const val MSGTYPE_FILE = "m.file"
|
const val MSGTYPE_FILE = "m.file"
|
||||||
const val MSGTYPE_OPTIONS = "m.options"
|
const val MSGTYPE_OPTIONS = "org.matrix.options"
|
||||||
const val MSGTYPE_RESPONSE = "m.response"
|
const val MSGTYPE_RESPONSE = "org.matrix.response"
|
||||||
const val MSGTYPE_POLL_CLOSED = "m.poll_closed"
|
const val MSGTYPE_POLL_CLOSED = "org.matrix.poll_closed"
|
||||||
const val MSGTYPE_VERIFICATION_REQUEST = "m.key.verification.request"
|
const val MSGTYPE_VERIFICATION_REQUEST = "m.key.verification.request"
|
||||||
// Add, in local, a fake message type in order to StickerMessage can inherit Message class
|
// Add, in local, a fake message type in order to StickerMessage can inherit Message class
|
||||||
// Because sticker isn't a message type but a event type without msgtype field
|
// Because sticker isn't a message type but a event type without msgtype field
|
||||||
|
|
Loading…
Reference in a new issue