chore: fix api test conventions
chore: rubocop -A spec/
chore: more rubocop -A
fix failing test
rubocop fixes
removes helper methods that are in my opinion dead code
more rubocop fixes
rubocop -a --auto-gen-config
This new view sorts the messages by threads based on the reply_to.
Now we store only the message which started a new thread in the reply_to
field to avoid recursive queries.