A short reply can mean many things
"ok." could mean annoyed. It could also mean the person is on a bus, mid-lesson, tired, or just a short typer.
Text carries no voice and no face, so it is easy to guess what was meant, and the guess can go either way.
Try a second reading
Read the message once the way it first lands. Then read it again as if it came from a friend who was rushed, shy or distracted. You are not deciding which one is true. You are just giving the person a fair hearing.
Sometimes the second reading is all it takes, and the message stops bothering you. Sometimes it still stings a little, and that is fine too. You do not have to settle it right now.
Answer the kind version
When you do reply, you can answer the friendly reading of the message. It costs nothing, and if you misjudged, the next few messages will usually make that clear on their own.
Try it on a message you have been turning over today.

