mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-09-13 20:27:18 +01:00
Graceful fallback for unsupported body range type
Co-authored-by: Fedor Indutny <79877362+indutny-signal@users.noreply.github.com>
This commit is contained in:
co-authored by
Fedor Indutny
parent
c44bc1d87d
commit
f1435dbc5e
@@ -413,7 +413,7 @@ function rangeToPartialNode(
|
||||
if (range.style === BodyRange.Style.NONE) {
|
||||
return {};
|
||||
}
|
||||
throw missingCaseError(range.style);
|
||||
return {};
|
||||
}
|
||||
if (BodyRange.isLink(range)) {
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user