Explorar o código

Don't provide error alert for background processes failing

JC Brand hai 6 meses
pai
achega
e933c2be1e
Modificáronse 1 ficheiros con 0 adicións e 2 borrados
  1. 0 2
      src/headless/plugins/bookmarks/collection.js

+ 0 - 2
src/headless/plugins/bookmarks/collection.js

@@ -179,10 +179,8 @@ class Bookmarks extends Collection {
      * @param {import('./types').BookmarkAttrs} attrs
      */
     onBookmarkError(iq, attrs) {
-        const { __ } = _converse;
         log.error('Error while trying to add bookmark');
         log.error(iq);
-        api.alert('error', __('Error'), [__('Sorry, something went wrong while trying to save your bookmark.')]);
         this.get(attrs.jid)?.destroy();
     }