#23 - now updates the correct message in the messages store based on whether the message is inbound or outbound