Skip to content
This repository has been archived by the owner on Dec 12, 2022. It is now read-only.

Commit

Permalink
Bug Fix - Duplicated msg when going into room details
Browse files Browse the repository at this point in the history
  • Loading branch information
giomfo committed Jan 25, 2017
1 parent 5903506 commit 41ec8e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MatrixKit/Models/Room/MXKRoomDataSource.m
Original file line number Diff line number Diff line change
Expand Up @@ -1671,7 +1671,7 @@ - (void)handleUnsentMessages
{
MXEvent *outgoingMessage = [outgoingMessages objectAtIndex:index];

if (outgoingMessage.sentState == MXEventSentStateSending || outgoingMessage.sentState == MXEventSentStateFailed)
if (outgoingMessage.sentState != MXEventSentStateSent)
{
[self queueEventForProcessing:outgoingMessage withRoomState:_room.state direction:MXTimelineDirectionForwards];
shouldProcessQueuedEvents = YES;
Expand Down

0 comments on commit 41ec8e5

Please sign in to comment.