TD2: Fix the remaining bugs in the IHM chat client.