strvcom / ios-chat-component

Chat modular library
MIT License
1 stars 1 forks source link

Fixes/delete last message #53

Closed cejanen closed 4 years ago

cejanen commented 4 years ago

In this PR I fixed two issues: 1) there should be logic not to update last seen message for user if the same but the condition check other property (last message of conversation) 2) similar to send message advanced logic at network layer I added logic to reset last message of conversation

its called always (deleting message is not common use case or allowed to be called in loop) else we would need to go twice for last message ( to check if the message is last) or we would need to send flag to network if the message is last message which I dont like as well

cejanen commented 4 years ago

Added merge of development