Skip to content

[BUG]: Confirm thread creation with react to contact causes bot to soft-block users with disabled DMs #3442

@Taaku18

Description

@Taaku18

Bot Version

4.2.1

How are you hosting Modmail?

Other

Error Logs

n/a

Screenshots

No response

Additional Information

Prerequisite:

React to contact message+emoji set and confirm thread creation set.

When the user has their privacy settings turned off (disallow DMs), the user clicks the react to contact emoji, the bot tries to send the confirm thread creation message to the user, the user's ticket is now stuck in a "limbo" state (stored in cache as "not ready"). A bot restart is required to clear the cache, even if the user allows DMs in settings.

Symptoms:

Spammed logs of thread setup timed out, 25s delay in responses

core.thread[53] - WARNING: Waiting for thread setup timed out.

When using the ?contact command on a soft-blocked user, bot responds with "Thread not created / A thread for [...] already exists".

Note: these symptoms may be caused by other unrelated bugs as well.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugThis is a confirmed bug

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions