*/}
- {feeds.map((mid, idx) => {
- const curr = messageData[mid];
- if (!curr) return null;
- const isFirst = idx == 0;
- const prev =
- idx == feeds.length - 1 ? null : messageData[feeds[idx + 1]];
- const read = curr?.from_uid == loginUid || mid <= readIndex;
- return renderMessageFragment({
- selectMode: !!selects,
- updateReadIndex: updateReadDebounced,
- read,
- isFirst,
- prev,
- curr,
- contextId: cid,
- context: "channel",
- });
- })}
- {hasMore ? (
-
- ) : (
-
-
Welcome to #{name} !
-
This is the start of the #{name} channel.
-
-
- Edit Channel
-
-
- )}
- {/*
*/}
-