Skip to content

Commit 89a2fce

Browse files
fix: build warning
1 parent f2c3e56 commit 89a2fce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Accord/UI/Chat/ChannelView/ChannelViewViewModel.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ final class ChannelViewViewModel: ObservableObject, Equatable {
176176
if let firstMessage = await self.messages.first {
177177
message.sameAuthor = firstMessage.author?.id == message.author?.id
178178
}
179-
if let count = await self.messages.count, count == 50 {
179+
if await self.messages.count == 50 {
180180
_ = await MainActor.run {
181181
self.messages.removeLast()
182182
}

0 commit comments

Comments
 (0)