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
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