Skip to content

Commit

Permalink
fix nextMessage being incorrect
Browse files Browse the repository at this point in the history
  • Loading branch information
mozzius committed May 5, 2024
1 parent 1f52ced commit de23acd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/state/messages/convo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -776,7 +776,7 @@ export class Convo {
}
return true
})
.map((item, i) => {
.map((item, i, arr) => {
let nextMessage = null
const isMessage = isConvoItemMessage(item)

Expand All @@ -786,7 +786,7 @@ export class Convo {
(ChatBskyConvoDefs.isMessageView(item.message) ||
ChatBskyConvoDefs.isDeletedMessageView(item.message))
) {
const next = items[i + 1]
const next = arr[i + 1]

if (
isConvoItemMessage(next) &&
Expand Down

0 comments on commit de23acd

Please sign in to comment.