The WhatsApp logout log records the event without a command for the
user. The existing user-facing notice still explains how to pair again,
so recovery advice reaches the user without becoming part of the event
name.
Issue:
3cdc678
- w.logger.Error("logged out by the phone, run /whatsapp pair PHONE")
+ w.logger.Error("logged out by the phone")
err := w.inbox.deliver(ctx, l, w.link(), true)
if err != nil {
err := w.inbox.deliver(ctx, l, w.link(), true)
if err != nil {
notice := "WhatsApp was unlinked from the phone. Run /whatsapp pair PHONE to link it again."
client.WaitFor(t, notice)
telegramWaitForSent(t, telegram, notice)
notice := "WhatsApp was unlinked from the phone. Run /whatsapp pair PHONE to link it again."
client.WaitFor(t, notice)
telegramWaitForSent(t, telegram, notice)
- require.Equal(t, "<3>logged out by the phone, run /whatsapp pair PHONE\n", logs.String())
+ require.Equal(t, "<3>logged out by the phone\n", logs.String())
require.NoFileExists(t, filepath.Join(dir, whatsappDirName, whatsappSessionFileName))
require.Equal(t, "WhatsApp is not linked. Run /whatsapp pair PHONE to link it.", whatsapp.Status())
require.Equal(t, []string{"WhatsApp was unlinked from the phone."}, whatsappTestLogTexts(t, memory))
require.NoFileExists(t, filepath.Join(dir, whatsappDirName, whatsappSessionFileName))
require.Equal(t, "WhatsApp is not linked. Run /whatsapp pair PHONE to link it.", whatsapp.Status())
require.Equal(t, []string{"WhatsApp was unlinked from the phone."}, whatsappTestLogTexts(t, memory))