This pull request adds callbacks to setRead and removeMessage functions. Credit to Omni-CG for the content of this PR.