Just use 'who' in casual contexts and stop worrying about it. Seriously, most people won't notice, and those who do care are increasingly seen as pedantic. The rule itself is simple though: 'who' is for the subject of a sentence (the person doing something), and 'whom' is for the object (the person something is being done to). So "who did you talk to" technically breaks the rule - it should be "whom did you talk to" because the person is receiving the action of talking. But in real life, especially in texts and emails to friends, literally nobody will call you out for using 'who'.
Even in work emails, the register matters less than you'd think. If you're texting a coworker "who should I contact about this?" or "who did you see at the conference?" you're fine. The only place where 'whom' still shows up regularly is formal writing - like application letters or official correspondence - and even then it's becoming rarer. If you genuinely want to be safe and sound natural in casual writing, stick with 'who' across the board. The language is shifting that way anyway.