Skip to content

Commit

Permalink
a
Browse files Browse the repository at this point in the history
  • Loading branch information
macwilko committed Dec 19, 2023
1 parent 19c1d77 commit 1e178c1
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions app/components/channel-feed.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,6 @@ export default function ChannelFeed(props) {
const [replyingTo, setReplyingTo] = useState(null);

useEffect(() => {
const user = channel.user;

if (lastJsonMessage?.topic == channel.id) {
try {
const update = JSON.parse(lastJsonMessage.message);
Expand All @@ -51,7 +49,7 @@ export default function ChannelFeed(props) {
const idx = messages.length - 1;
const last = messages[idx];

if (last.optimistic && user.handle == update.user.handle) {
if (last.optimistic && last.user.handle == update.user.handle) {
return;
}

Expand Down

0 comments on commit 1e178c1

Please sign in to comment.