people: Clean up recip.id code.

When we are pulling data from message.display_recipient
for private messages, the user_id field is always
called 'id', not 'user_id', so we can simplify
some defensive code.
This commit is contained in:
Steve Howell
2020-01-01 12:02:34 +00:00
committed by Tim Abbott
parent 7630b859c3
commit bc5589c2a7
9 changed files with 48 additions and 33 deletions

View File

@@ -106,7 +106,7 @@ run_test('blueslip', () => {
display_recipient: [
{id: maria.user_id},
{id: 42},
{user_id: charles.user_id},
{id: charles.user_id},
],
sender_id: charles.user_id,
};