-
- {message.attachments && message.attachments.length > 0 && (
-
- )}
- {message.author === SYSTEM_USER_ID ? (
-
- ) : (
-
- )}
+ { user?.relationship === Users.Relationship.Blocked ?
+ <>Blocked User> :
+ <>
+ {message.author === SYSTEM_USER_ID ? (
+
+ ) : <>
+
+ {
+ let obj = ctx.client.channels.get(channel);
+ if (obj?.channel_type === 'TextChannel') {
+ history.push(`/server/${obj.server}/channel/${obj._id}/${message._id}`);
+ } else {
+ history.push(`/channel/${channel}/${message._id}`);
+ }
+ }}>
+ {message.attachments && message.attachments.length > 0 && (
+
+ )}
+
+
+ >}
+ >
+ }
);
}