Fix a crash on spoilers
This commit is contained in:
parent
72b336a5f5
commit
b67e29c0bb
|
@ -98,6 +98,10 @@ func EntityToMarkdown(entity *client.TextEntity) (*Insertion, *Insertion) {
|
|||
|
||||
// EntityToXEP0393 generates the wrapping XEP-0393 tags
|
||||
func EntityToXEP0393(entity *client.TextEntity) (*Insertion, *Insertion) {
|
||||
if entity == nil || entity.Type == nil {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
switch entity.Type.TextEntityTypeType() {
|
||||
case client.TypeTextEntityTypeBold:
|
||||
return markupBraces(entity, boldRunesXEP0393, boldRunesXEP0393)
|
||||
|
|
Loading…
Reference in a new issue