That’s correct, Torbjorn’s hammer counts as primary firing since that’s the button that is used to make it happen. There currently isn’t a way for you to tell which weapon is equipped, though it’s something we could add in the future.
This thread was added on April 24, 2019, with posts from DanReed-11233.