File tree Expand file tree Collapse file tree 1 file changed +13
-8
lines changed Expand file tree Collapse file tree 1 file changed +13
-8
lines changed Original file line number Diff line number Diff line change @@ -1080,13 +1080,18 @@ class Base {
1080
1080
let tag = autoTagger ( senderId , this ) ;
1081
1081
1082
1082
if ( reaction ) {
1083
- return await client . sendEvent ( reaction . roomId , "m.reaction" , {
1084
- "m.relates_to" : {
1085
- event_id : reaction . eventId ,
1086
- key : reaction . emoji ,
1087
- rel_type : "m.annotation" ,
1088
- }
1089
- } ) ;
1083
+ try {
1084
+ return await client . sendEvent ( reaction . roomId , "m.reaction" , {
1085
+ "m.relates_to" : {
1086
+ event_id : reaction . eventId ,
1087
+ key : reaction . emoji ,
1088
+ rel_type : "m.annotation" ,
1089
+ }
1090
+ } ) ;
1091
+ }
1092
+ catch ( err ) {
1093
+ //We catch all errors as reactions are not important
1094
+ }
1090
1095
}
1091
1096
if ( html ) {
1092
1097
return await client . sendMessage ( matrixRoomId , {
@@ -1200,7 +1205,7 @@ class Base {
1200
1205
}
1201
1206
if ( msgtype === 'm.video' ) {
1202
1207
logger . info ( "video file from riot" ) ;
1203
-
1208
+
1204
1209
let url = this . puppet . getClient ( ) . mxcUrlToHttp ( data . content . url ) ;
1205
1210
return await this . sendVideoAsPuppetToThirdPartyRoomWithId ( thirdPartyRoomId , {
1206
1211
url, text : msg ,
You can’t perform that action at this time.
0 commit comments