Skip to content

Commit 229d1d0

Browse files
committed
Cast collection content to IMessageView, since not everything is Message
1 parent 5db0234 commit 229d1d0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Signal-Windows/Controls/Conversation.xaml.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,7 @@ private void MarkBottommostMessageRead()
385385
if (lastSeenIndex <= rawBottomIndex && LastMarkReadRequest < rawBottomIndex)
386386
{
387387
LastMarkReadRequest = rawBottomIndex;
388-
var msg = ((Message)Collection[bottomIndex]).Model;
388+
var msg = ((IMessageView)Collection[bottomIndex]).Model;
389389
Task.Run(async () =>
390390
{
391391
await App.Handle.SetMessageRead(rawBottomIndex, msg, SignalConversation);

0 commit comments

Comments
 (0)