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

Fix softcrash if editing silly events #3596

Merged
merged 1 commit into from
Nov 6, 2019
Merged

Conversation

dbkr
Copy link
Member

@dbkr dbkr commented Nov 6, 2019

If you sent an event with a body of the empty json object, riot
would then softcrash when you pressed the up arrow because it
would try to treat a json object as a string and run split on it.

This fix makes those events non-editable

If you sent an event with a body of the empty json object, riot
would then softcrash when you pressed the up arrow because it
would try to treat a json object as a string and run split on it.
@dbkr dbkr requested a review from bwindels November 6, 2019 11:46
Copy link
Contributor

@bwindels bwindels left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

odd case :) lgtm!

@dbkr dbkr merged commit e2acc90 into develop Nov 6, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants