- homeActive &&
- history.push("/settings")
- }>
-
- 0
- ? "mention"
- : undefined
- }
- count={alertCount}>
+
+
+
+
+
+
+ homeActive && history.push("/settings")
+ }>
+
+ 0 ? "mention" : undefined
+ }
+ count={alertCount}>
+
+
+
+
+
+
+ {channels
+ .filter(
+ (x) =>
+ (x.channel_type === "DirectMessage" ||
+ x.channel_type === "Group") &&
+ x.unread,
+ )
+ .map((x) => {
+ const unreadCount = x.mentions.length;
+ return (
+
+
+
+ 0
+ ? "mention"
+ : "unread"
+ }
+ count={unreadCount}>
+ {x.channel_type ===
+ "DirectMessage" ? (
-
-
+ ) : (
+
+ )}
+
-
- {channels
- .filter(
- (x) =>
- (x.channel_type === "DirectMessage" ||
- x.channel_type === "Group") &&
- x.unread,
- )
- .map((x) => {
- const unreadCount = x.mentions.length;
- return (
-
-
-
- 0
- ? "mention"
- : "unread"
- }
- count={unreadCount}>
- {x.channel_type ===
- "DirectMessage" ? (
-
- ) : (
-
- )}
-
-
-
-
- );
- })}
-
- {servers.map((server, index) => {
- const active = server._id === server_id;
+
+ );
+ })}
+
+ {servers.map((server) => {
+ const active = server._id === server_id;
- const isUnread = server.isUnread(
- state.notifications,
- );
- const mentionCount = server.getMentions(
- state.notifications,
- ).length;
+ const isUnread = server.isUnread(state.notifications);
+ const mentionCount = server.getMentions(
+ state.notifications,
+ ).length;
- return (
-
- {(provided, snapshot) => (
-
-
-
- {!snapshot.isDragging && (
-
- )}
-
-
-
- 0
- ? "mention"
- : isUnread
- ? "unread"
- : undefined
- }
- count={
- mentionCount
- }>
-
-
-
-
-
-
- )}
-
- );
- })}
- {provided.placeholder}
-
+ return (
+
+
+
-
-
- openScreen({
- id: "special_input",
- type: "create_server",
- })
- }>
-
-
-
+ 0
+ ? "mention"
+ : isUnread
+ ? "unread"
+ : undefined
+ }
+ count={mentionCount}>
+
+
-
-
-
- Discover Public Servers
-
-
- }
- placement="right">
-