Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
Use unstable prefix for m.attachment
Browse files Browse the repository at this point in the history
  • Loading branch information
chayleaf committed Aug 26, 2021
1 parent 94bb9a5 commit d489ba7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/views/messages/MessageEvent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ export default class MessageEvent extends React.Component<IProps> implements IMe

let attachment = null;
if (SettingsStore.getValue("feature_message_attachments")) {
if (this.props.mxEvent.isRelation("m.attachment")) {
if (this.props.mxEvent.isRelation("org.matrix.msc2881.m.attachment")) {
const relation = this.props.mxEvent.getRelation();
if (this.room && relation && relation.event_id) {
const event = this.room.findEventById(relation.event_id);
Expand Down
2 changes: 1 addition & 1 deletion src/components/views/rooms/SendMessageComposer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ function addAttachmentToMessageContent(
): void {
const attachContent = {
'm.relates_to': {
'rel_type': 'm.attachment',
'rel_type': 'org.matrix.msc2881.m.attachment',
'event_id': attachEventId,
},
};
Expand Down

0 comments on commit d489ba7

Please sign in to comment.