history: Update thread_members when new message is added
We were not updating thread members and the members list were thus almost always empty (Went unnoticed as we are not using thread members, but shall be useful for matrix and SMS threads in the future)