riot-web/src
Eric Eastwood 9c3439a1aa
Show updated relation reply from edited message - v2 (#6817)
Part of https://github.com/vector-im/element-web/issues/10391

When `m.relates_to` -> `m.in_reply_to` is provided in `m.new_content`
for an edited message, use the updated reply.

ex.

```json
{
  "type": "m.room.message",
  "content": {
    "body": " * foo bar",
    "msgtype": "m.text",
    "m.new_content": {
      "body": "foo bar",
      "msgtype": "m.text",
      "m.relates_to": {
        "m.in_reply_to": {
          "event_id": "$qkjmFBTEc0VvfVyzq1CJuh1QZi_xDIgNEFjZ4Pq34og"
        }
      }
    },
    "m.relates_to": {
      "rel_type": "m.replace",
      "event_id": "$lX9MRe9ZTFOOvnU8PRVbvr1wqGtYvNQ1rSot-iUTN5k"
    }
  }
}
```
2021-09-17 15:18:52 -05:00
..
@types
accessibility
actions
async-components/views/dialogs
audio
autocomplete
components Show updated relation reply from edited message - v2 (#6817) 2021-09-17 15:18:52 -05:00
contexts
customisations
dispatcher
editor
effects
emojipicker
hooks
i18n/strings
indexing
integrations
mjolnir
models
notifications
performance
rageshake
resizer
settings
stores
toasts
usercontent
utils
widgets
workers
ActiveRoomObserver.ts
AddThreepid.js
Analytics.tsx
AsyncWrapper.tsx
Avatar.ts
BasePlatform.ts
BlurhashEncoder.ts
CallHandler.tsx
ContentMessages.tsx
CountlyAnalytics.ts
DateUtils.ts
DecryptionFailureTracker.ts
DeviceListener.ts
GroupAddressPicker.js
HtmlUtils.tsx
IdentityAuthClient.js
ImageUtils.ts
KeyBindingsDefaults.ts
KeyBindingsManager.ts
Keyboard.ts
Lifecycle.ts
Livestream.ts
Login.ts
Markdown.ts
MatrixClientPeg.ts
MediaDeviceHandler.ts
Modal.tsx
NodeAnimator.js
Notifier.ts
PageTypes.js
PasswordReset.ts
PlatformPeg.ts
PosthogAnalytics.ts
Presence.ts
Registration.js
Resend.ts
Roles.ts
RoomAliasCache.ts
RoomInvite.tsx
RoomNotifs.js
RoomNotifsTypes.ts
Rooms.ts
ScalarAuthClient.ts
ScalarMessaging.js
SdkConfig.ts
Searching.ts
SecurityManager.ts
SendHistoryManager.ts
Skinner.js
SlashCommands.tsx
Terms.ts
TextForEvent.tsx
Unread.ts
UserActivity.ts
UserAddress.ts
VoipUserMapper.ts
WhoIsTyping.ts
boundThreepids.js
createRoom.ts
email.ts
emoji.ts
groups.js
identifiers.ts
index.js
languageHandler.tsx
linkify-matrix.js
phonenumber.ts
sendTimePerformanceMetrics.ts
sentry.ts
shouldHideEvent.ts
theme.js
verification.ts