element-web-Github/src/i18n/strings
Clark Fischer 2417482667
Fix error when viewing source of redacted events (#9914)
* Fix viewing source of redacted events

Clicking 'View Source' in the context menu of a redacted event causes an error,
and the user gets no visible result.

This fixes <ViewSource /> to indicate that the source is unavailable when a
message has been redacted. The original source remains available.

<SyntaxHighlight /> requires a non-null string for its `content` prop, and, in
the case of redacted events, <ViewSource /> was passing `undefined`. This is
ultimately because redacting an event causes `MatrixEvent.clearEvent` to be
`undefined`, which <ViewSource /> wasn't checking.

Fixes https://github.com/vector-im/element-web/issues/24165

Signed-off-by: Clark Fischer <clark.fischer@gmail.com>

* Use correct highlight.js call

Previous call signature was deprecated.

See https://github.com/highlightjs/highlight.js/issues/2277

Signed-off-by: Clark Fischer <clark.fischer@gmail.com>

Signed-off-by: Clark Fischer <clark.fischer@gmail.com>
2023-01-15 16:22:59 +00:00
..
am.json Translations update from Weblate (#8117) 2022-03-22 15:41:05 +00:00
ar.json Translations update from Weblate (#9888) 2023-01-11 13:19:55 +00:00
az.json Translations update from Weblate (#9648) 2022-11-29 15:22:37 +00:00
basefile.json
be.json Translations update from Weblate (#9648) 2022-11-29 15:22:37 +00:00
bg.json Translations update from Weblate (#9888) 2023-01-11 13:19:55 +00:00
bn_BD.json Translated using Weblate (Bengali (Bangladesh)) 2021-07-16 18:59:13 +00:00
bn_IN.json Translated using Weblate (Bengali (India)) 2021-07-16 18:59:14 +00:00
bs.json Translated using Weblate (Bosnian) 2021-07-16 18:59:14 +00:00
ca.json Translations update from Weblate (#9648) 2022-11-29 15:22:37 +00:00
ckb.json Translations update from Weblate (#7745) 2022-02-08 14:52:25 +00:00
cs.json Translations update from Weblate (#9888) 2023-01-11 13:19:55 +00:00
cy.json Translations update from Weblate (#8923) 2022-06-28 14:35:46 +00:00
da.json Translations update from Weblate (#9648) 2022-11-29 15:22:37 +00:00
de_DE.json Translations update from Weblate (#9888) 2023-01-11 13:19:55 +00:00
el.json Translations update from Weblate (#9888) 2023-01-11 13:19:55 +00:00
en_EN.json Fix error when viewing source of redacted events (#9914) 2023-01-15 16:22:59 +00:00
en_US.json Translations update from Weblate (#9648) 2022-11-29 15:22:37 +00:00
eo.json Translations update from Weblate (#9888) 2023-01-11 13:19:55 +00:00
es.json Translations update from Weblate (#9888) 2023-01-11 13:19:55 +00:00
et.json Translations update from Weblate (#9888) 2023-01-11 13:19:55 +00:00
eu.json Translations update from Weblate (#9888) 2023-01-11 13:19:55 +00:00
fa.json Translations update from Weblate (#9888) 2023-01-11 13:19:55 +00:00
fi.json Translations update from Weblate (#9888) 2023-01-11 13:19:55 +00:00
fr.json Translations update from Weblate (#9888) 2023-01-11 13:19:55 +00:00
fy.json Translations update from Weblate (#7139) 2021-11-16 11:36:06 +00:00
ga.json Translations update from Weblate (#9888) 2023-01-11 13:19:55 +00:00
gl.json Translations update from Weblate (#9888) 2023-01-11 13:19:55 +00:00
he.json Translations update from Weblate (#9888) 2023-01-11 13:19:55 +00:00
hi.json Translations update from Weblate (#9888) 2023-01-11 13:19:55 +00:00
hr.json Translations update from Weblate (#8923) 2022-06-28 14:35:46 +00:00
hu.json Translations update from Weblate (#9888) 2023-01-11 13:19:55 +00:00
id.json Translations update from Weblate (#9888) 2023-01-11 13:19:55 +00:00
is.json Translations update from Weblate (#9888) 2023-01-11 13:19:55 +00:00
it.json Translations update from Weblate (#9888) 2023-01-11 13:19:55 +00:00
ja.json Translations update from Weblate (#9888) 2023-01-11 13:19:55 +00:00
jbo.json Translations update from Weblate (#9888) 2023-01-11 13:19:55 +00:00
ka.json
kab.json Translations update from Weblate (#9888) 2023-01-11 13:19:55 +00:00
ko.json Translations update from Weblate (#9888) 2023-01-11 13:19:55 +00:00
lb.json Translations update from Weblate (#9448) 2022-10-18 12:40:40 +01:00
lo.json Translations update from Weblate (#9888) 2023-01-11 13:19:55 +00:00
lt.json Translations update from Weblate (#9888) 2023-01-11 13:19:55 +00:00
lv.json Translations update from Weblate (#9888) 2023-01-11 13:19:55 +00:00
ml.json Translations update from Weblate (#9648) 2022-11-29 15:22:37 +00:00
mn.json Translated using Weblate (Mongolian) 2021-04-11 04:32:56 +00:00
nb_NO.json Translations update from Weblate (#9888) 2023-01-11 13:19:55 +00:00
ne.json Translations update from Weblate (#8923) 2022-06-28 14:35:46 +00:00
nl.json Translations update from Weblate (#9888) 2023-01-11 13:19:55 +00:00
nn.json Translations update from Weblate (#9888) 2023-01-11 13:19:55 +00:00
oc.json Translations update from Weblate (#9888) 2023-01-11 13:19:55 +00:00
pl.json Translations update from Weblate (#9888) 2023-01-11 13:19:55 +00:00
pt_BR.json Translations update from Weblate (#9888) 2023-01-11 13:19:55 +00:00
pt.json Translations update from Weblate (#9648) 2022-11-29 15:22:37 +00:00
ro.json Translations update from Weblate (#8923) 2022-06-28 14:35:46 +00:00
ru.json Translations update from Weblate (#9888) 2023-01-11 13:19:55 +00:00
sco.json
si.json Translated using Weblate (Sinhala) 2021-08-08 17:54:47 +00:00
sk.json Translations update from Weblate (#9888) 2023-01-11 13:19:55 +00:00
sl.json Translations update from Weblate (#9648) 2022-11-29 15:22:37 +00:00
sq.json Translations update from Weblate (#9888) 2023-01-11 13:19:55 +00:00
sr_Latn.json Translations update from Weblate (#9888) 2023-01-11 13:19:55 +00:00
sr.json Translations update from Weblate (#9888) 2023-01-11 13:19:55 +00:00
sv.json Translations update from Weblate (#9888) 2023-01-11 13:19:55 +00:00
szl.json Translations update from Weblate (#9582) 2022-11-15 17:49:36 +00:00
ta.json Translations update from Weblate (#9648) 2022-11-29 15:22:37 +00:00
te.json Translations update from Weblate (#9648) 2022-11-29 15:22:37 +00:00
th.json Translations update from Weblate (#9888) 2023-01-11 13:19:55 +00:00
tr.json Translations update from Weblate (#9888) 2023-01-11 13:19:55 +00:00
tzm.json Translations update from Weblate (#9582) 2022-11-15 17:49:36 +00:00
uk.json Translations update from Weblate (#9888) 2023-01-11 13:19:55 +00:00
vi.json Translations update from Weblate (#9888) 2023-01-11 13:19:55 +00:00
vls.json Translations update from Weblate (#9888) 2023-01-11 13:19:55 +00:00
zh_Hans.json Translations update from Weblate (#9888) 2023-01-11 13:19:55 +00:00
zh_Hant.json Translations update from Weblate (#9888) 2023-01-11 13:19:55 +00:00