[lib] implement retrying DM text messages
Summary:
ENG-8423.
Am alternative is to implement this in InputStateContainer, but will require a lot more changes and I don't think it's better.
Depends on D13160
Test Plan:
Test retrying message
Note: This stack is tested end-to-end according to the process described here.
Reviewers: tomek, inka
Reviewed By: tomek
Subscribers: ashoat
Differential Revision: https://phab.comm.dev/D13161