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

Commit 7bfe84f

Browse files
committed
Catch errors adding widget
1 parent e9336ea commit 7bfe84f

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/ScalarMessaging.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -404,6 +404,8 @@ function setWidget(event, roomId) {
404404
});
405405

406406
dis.dispatch({ action: "user_widget_updated" });
407+
}).catch((e) => {
408+
sendError(event, _t('Error adding widget'));
407409
});
408410
} else { // Room widget
409411
if (!roomId) {

src/i18n/strings/en_EN.json

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@
103103
"You need to be logged in.": "You need to be logged in.",
104104
"You need to be able to invite users to do that.": "You need to be able to invite users to do that.",
105105
"Unable to create widget.": "Unable to create widget.",
106+
"Error adding widget": "Error adding widget",
106107
"Missing roomId.": "Missing roomId.",
107108
"Failed to send request.": "Failed to send request.",
108109
"This room is not recognised.": "This room is not recognised.",
@@ -190,7 +191,6 @@
190191
"Message Replies": "Message Replies",
191192
"Message Pinning": "Message Pinning",
192193
"Tag Panel": "Tag Panel",
193-
"Sticker Messages": "Sticker Messages",
194194
"Disable Emoji suggestions while typing": "Disable Emoji suggestions while typing",
195195
"Use compact timeline layout": "Use compact timeline layout",
196196
"Hide removed messages": "Hide removed messages",
@@ -566,8 +566,6 @@
566566
"Download %(text)s": "Download %(text)s",
567567
"Invalid file%(extra)s": "Invalid file%(extra)s",
568568
"Error decrypting image": "Error decrypting image",
569-
"This image cannot be displayed.": "This image cannot be displayed.",
570-
"Image '%(Body)s' cannot be displayed.": "Image '%(Body)s' cannot be displayed.",
571569
"Error decrypting video": "Error decrypting video",
572570
"%(senderDisplayName)s changed the avatar for %(roomName)s": "%(senderDisplayName)s changed the avatar for %(roomName)s",
573571
"%(senderDisplayName)s removed the room avatar.": "%(senderDisplayName)s removed the room avatar.",
@@ -815,8 +813,8 @@
815813
"Encryption key request": "Encryption key request",
816814
"Sign out": "Sign out",
817815
"Log out and remove encryption keys?": "Log out and remove encryption keys?",
818-
"Send Logs": "Send Logs",
819816
"Clear Storage and Sign Out": "Clear Storage and Sign Out",
817+
"Send Logs": "Send Logs",
820818
"Refresh": "Refresh",
821819
"Unable to restore session": "Unable to restore session",
822820
"We encountered an error trying to restore your previous session.": "We encountered an error trying to restore your previous session.",

0 commit comments

Comments
 (0)