]> Untitled Git - lemmy-ui.git/commitdiff
Remove websocket connection messages. Fixes #355
authorDessalines <tyhou13@gmx.com>
Sat, 31 Jul 2021 14:30:08 +0000 (10:30 -0400)
committerDessalines <dessalines@users.noreply.github.com>
Sat, 31 Jul 2021 19:41:51 +0000 (15:41 -0400)
src/shared/components/app/navbar.tsx

index 00381f63aad8b14903de42a5029a4b27db358c2b..114ffb779dc6695a29682a3857ce4f2a34da0e0e 100644 (file)
@@ -395,7 +395,7 @@ export class Navbar extends Component<NavbarProps, NavbarState> {
       }
       return;
     } else if (msg.reconnect) {
-      toast(i18n.t("websocket_reconnected"), "success");
+      console.log(i18n.t("websocket_reconnected"));
       WebSocketService.Instance.send(
         wsClient.userJoin({
           auth: authField(),
@@ -542,7 +542,7 @@ export class Navbar extends Component<NavbarProps, NavbarState> {
   websocketEvents() {
     let msg = i18n.t("websocket_disconnected");
     WebSocketService.Instance.closeEventListener(() => {
-      toast(msg, "danger");
+      console.error(msg);
     });
   }