message_fetch: Use email as operand for 'dm' operator.

In our web client code we use email as the operand for
'dm' operator. Later user_ids_array is set as operand
in 'handle_operators_supporting_id_based_api' before
making the API call.

Earlier, using user_id as the operand was resulting in
the following error during user signup:
data=b'{"result":"error","msg":"Invalid narrow[0]: Value error,
operand is missing","code":"BAD_REQUEST"}

This commit replaces user_id with email as operand.
This commit is contained in:
Prakhar Pratyush 2024-07-29 22:34:13 +05:30 committed by Tim Abbott
parent d974c10efc
commit 13c0571183
1 changed files with 1 additions and 1 deletions

View File

@ -18,7 +18,7 @@ export function initialize() {
[
{
operator: "dm",
operand: people.WELCOME_BOT.user_id,
operand: people.WELCOME_BOT.email,
},
],
{trigger: "sidebar"},