If msgInput element is somehow null, addEventListener throws and prevents loadConvs() from being called — wrapping in null check makes it safe. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
If msgInput element is somehow null, addEventListener throws and prevents loadConvs() from being called — wrapping in null check makes it safe. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>