Steve Howell  
		
	
	58b72a2194 
	
	
	refactor: Make bot owner hovers more robust.  
		
			... 
			This is code simplification motivated
by a recent bug that we fixed with some
server changes, but which was really
caused in some sense by our client code
using an overly finicky
condition to check falsiness.
For cross-realm bots, the value of
`user.bot_owner_id` may be `null`, or it
may simply be `undefined`, depending
on whether the server passes `None`
or simply omits the field.
We don't want out client code to be
coupled to that rather arbitrary
decision.
We were doing a `!== null` check instead
of checking for falsiness, which led to
blueslip errors in the past.  Because a
bot owner id could be plausibly 0, a falsiness
check would be brittle in a different way.
Now we avoid that ugliness by calling
`get_bot_owner_user`, which either returns
an object or `undefined`.
And then the caller can just do a concise
check for whether `bot_owner` exists.
And we also fix up the crufty code that
was putting `bot_owner_full_name` on to
the object instead of using a local.
We have a bug report for this again, although
it might be on an old branch.
Fixes  #13621 . 
		
	 
 
		2020-03-24 20:40:19 -07:00 
	 
	
	
	
		  ..
	 
	
	
		
	
		
			
			
			
			
			
			2020-02-10 14:08:12 -08:00 
		 
	
		
			
			
			
			
			
			2020-02-29 12:19:51 -08:00 
		 
	
		
			
			
			
			
			
			2020-03-10 14:38:23 -07:00 
		 
	
		
			
			
			
			
			
			2020-03-02 17:45:44 -08:00 
		 
	
		
			
			
			
			
			
			2020-02-04 22:13:33 -08:00 
		 
	
		
			
			
			
			
			
			2020-02-25 15:37:37 -08:00 
		 
	
		
			
			
			
			
			
			2020-02-28 17:11:24 -08:00 
		 
	
		
			
			
			
			
			
			2020-02-27 11:10:13 -08:00 
		 
	
		
			
			
			
			
			
			2020-02-27 11:10:13 -08:00 
		 
	
		
			
			
			
			
			
			2020-02-11 17:43:35 -08:00 
		 
	
		
			
			
			
			
			
			2020-02-10 14:08:12 -08:00 
		 
	
		
	
		
			
			
			
			
			
			2020-02-04 22:13:33 -08:00 
		 
	
		
			
			
			
			
			
			2020-02-25 14:09:39 -08:00 
		 
	
		
			
			
			
			
			
			2020-03-24 20:40:19 -07:00 
		 
	
		
			
			
			
			
			
			2020-03-24 20:40:19 -07:00 
		 
	
		
			
			
			
			
			
			2020-02-07 14:09:47 -08:00 
		 
	
		
			
			
			
			
			
			2020-02-27 17:41:45 -08:00 
		 
	
		
			
			
			
			
			
			2020-02-15 12:20:20 -08:00 
		 
	
		
			
			
			
			
			
			2020-02-27 17:20:34 -08:00 
		 
	
		
			
			
			
			
			
			2020-02-12 08:16:26 -05:00 
		 
	
		
			
			
			
			
			
			2020-02-13 16:37:52 -08:00 
		 
	
		
			
			
			
			
			
			2020-02-10 14:08:12 -08:00 
		 
	
		
			
			
			
			
			
			2020-02-25 14:09:39 -08:00 
		 
	
		
			
			
			
			
			
			2020-02-15 12:20:20 -08:00 
		 
	
		
			
			
			
			
			
			2020-02-15 12:20:20 -08:00 
		 
	
		
			
			
			
			
			
			2020-02-15 12:20:20 -08:00 
		 
	
		
			
			
			
			
			
			2020-02-10 14:08:12 -08:00 
		 
	
		
			
			
			
			
			
			2020-02-21 09:53:45 -05:00 
		 
	
		
			
			
			
			
			
			2020-03-22 10:55:11 -07:00 
		 
	
		
			
			
			
			
			
			2020-02-25 15:37:37 -08:00 
		 
	
		
			
			
			
			
			
			2020-02-07 14:09:47 -08:00 
		 
	
		
			
			
			
			
			
			2020-02-13 16:43:19 -08:00 
		 
	
		
	
		
			
			
			
			
			
			2020-03-09 14:07:13 -07:00 
		 
	
		
			
			
			
			
			
			2020-02-15 12:20:20 -08:00 
		 
	
		
			
			
			
			
			
			2020-02-25 14:09:39 -08:00 
		 
	
		
			
			
			
			
			
			2020-03-23 17:30:18 -04:00 
		 
	
		
			
			
			
			
			
			2020-02-25 14:43:46 -08:00 
		 
	
		
			
			
			
			
			
			2020-02-25 14:43:46 -08:00 
		 
	
		
	
		
			
			
			
			
			
			2020-02-27 11:19:13 -08:00 
		 
	
		
	
		
			
			
			
			
			
			2020-02-15 12:20:20 -08:00 
		 
	
		
	
		
			
			
			
			
			
			2020-03-17 12:27:08 -07:00 
		 
	
		
			
			
			
			
			
			2020-02-10 14:08:12 -08:00 
		 
	
		
			
			
			
			
			
			2020-02-04 12:22:03 -08:00 
		 
	
		
			
			
			
			
			
			2020-02-12 10:39:01 -08:00 
		 
	
		
			
			
			
			
			
			2020-02-15 12:20:20 -08:00 
		 
	
		
			
			
			
			
			
			2020-03-22 11:29:02 -07:00 
		 
	
		
			
			
			
			
			
			2020-02-27 11:14:02 -08:00 
		 
	
		
	
		
			
			
			
			
			
			2020-02-12 10:09:12 -08:00 
		 
	
		
			
			
			
			
			
			2020-02-27 17:20:34 -08:00 
		 
	
		
			
			
			
			
			
			2020-02-29 12:19:51 -08:00 
		 
	
		
			
			
			
			
			
			2020-02-10 14:08:12 -08:00 
		 
	
		
			
			
			
			
			
			2020-02-27 17:20:34 -08:00 
		 
	
		
	
		
			
			
			
			
			
			2020-01-27 15:36:59 -08:00 
		 
	
		
	
		
			
			
			
			
			
			2020-02-04 12:22:03 -08:00 
		 
	
		
	
		
			
			
			
			
			
			2020-02-24 12:19:10 -08:00 
		 
	
		
	
		
			
			
			
			
			
			2020-03-24 16:06:45 -07:00 
		 
	
		
	
		
	
		
			
			
			
			
			
			2020-02-12 10:39:01 -08:00 
		 
	
		
	
		
			
			
			
			
			
			2020-02-18 16:13:38 -08:00 
		 
	
		
			
			
			
			
			
			2020-02-18 16:13:38 -08:00 
		 
	
		
			
			
			
			
			
			2020-02-27 11:19:13 -08:00 
		 
	
		
			
			
			
			
			
			2020-03-06 17:10:26 -08:00 
		 
	
		
			
			
			
			
			
			2020-02-10 14:08:12 -08:00 
		 
	
		
			
			
			
			
			
			2020-02-10 14:08:12 -08:00 
		 
	
		
			
			
			
			
			
			2020-02-27 17:20:34 -08:00 
		 
	
		
			
			
			
			
			
			2020-02-25 14:09:39 -08:00 
		 
	
		
			
			
			
			
			
			2020-02-25 14:09:39 -08:00 
		 
	
		
			
			
			
			
			
			2020-02-07 14:09:47 -08:00 
		 
	
		
	
		
			
			
			
			
			
			2020-02-21 09:53:45 -05:00 
		 
	
		
	
		
			
			
			
			
			
			2020-02-15 12:20:20 -08:00 
		 
	
		
			
			
			
			
			
			2020-02-21 09:53:45 -05:00 
		 
	
		
			
			
			
			
			
			2020-02-25 15:37:37 -08:00 
		 
	
		
			
			
			
			
			
			2020-02-25 15:37:37 -08:00 
		 
	
		
			
			
			
			
			
			2020-03-22 11:29:02 -07:00 
		 
	
		
	
		
	
		
			
			
			
			
			
			2020-03-24 16:06:45 -07:00 
		 
	
		
	
		
	
		
			
			
			
			
			
			2020-01-15 12:01:14 -08:00 
		 
	
		
			
			
			
			
			
			2020-02-28 01:54:46 -08:00 
		 
	
		
			
			
			
			
			
			2020-03-24 20:40:19 -07:00 
		 
	
		
			
			
			
			
			
			2020-02-27 17:20:34 -08:00 
		 
	
		
			
			
			
			
			
			2020-02-10 14:08:12 -08:00 
		 
	
		
			
			
			
			
			
			2020-02-10 14:08:12 -08:00 
		 
	
		
	
		
			
			
			
			
			
			2020-02-10 14:08:12 -08:00 
		 
	
		
			
			
			
			
			
			2020-02-28 17:11:24 -08:00 
		 
	
		
			
			
			
			
			
			2020-03-22 10:55:11 -07:00 
		 
	
		
			
			
			
			
			
			2020-03-23 17:30:18 -04:00 
		 
	
		
	
		
	
		
	
		
			
			
			
			
			
			2020-02-25 15:37:37 -08:00 
		 
	
		
	
		
			
			
			
			
			
			2020-02-25 14:09:39 -08:00 
		 
	
		
			
			
			
			
			
			2020-02-21 09:53:45 -05:00 
		 
	
		
			
			
			
			
			
			2020-02-15 12:20:20 -08:00 
		 
	
		
			
			
			
			
			
			2020-02-24 12:19:10 -08:00 
		 
	
		
			
			
			
			
			
			2020-02-15 12:20:20 -08:00 
		 
	
		
			
			
			
			
			
			2020-02-10 15:57:20 -08:00 
		 
	
		
	
		
	
		
	
		
			
			
			
			
			
			2020-02-27 17:20:34 -08:00 
		 
	
		
			
			
			
			
			
			2020-02-28 17:11:24 -08:00 
		 
	
		
			
			
			
			
			
			2020-02-10 14:08:12 -08:00 
		 
	
		
			
			
			
			
			
			2020-02-12 10:39:01 -08:00 
		 
	
		
			
			
			
			
			
			2020-02-12 10:39:01 -08:00 
		 
	
		
			
			
			
			
			
			2020-03-22 10:55:11 -07:00 
		 
	
		
			
			
			
			
			
			2020-02-25 14:09:39 -08:00 
		 
	
		
			
			
			
			
			
			2020-02-25 15:37:37 -08:00 
		 
	
		
			
			
			
			
			
			2020-03-22 10:55:11 -07:00 
		 
	
		
			
			
			
			
			
			2020-03-06 16:34:08 -08:00 
		 
	
		
			
			
			
			
			
			2020-03-06 16:34:08 -08:00 
		 
	
		
			
			
			
			
			
			2020-02-25 14:43:46 -08:00 
		 
	
		
			
			
			
			
			
			2020-02-10 14:08:12 -08:00 
		 
	
		
			
			
			
			
			
			2020-02-10 14:08:12 -08:00 
		 
	
		
			
			
			
			
			
			2020-02-10 15:57:20 -08:00 
		 
	
		
			
			
			
			
			
			2020-02-10 14:08:12 -08:00 
		 
	
		
			
			
			
			
			
			2020-01-16 13:23:47 -08:00 
		 
	
		
			
			
			
			
			
			2020-03-24 16:06:45 -07:00 
		 
	
		
			
			
			
			
			
			2020-03-24 16:06:45 -07:00 
		 
	
		
	
		
			
			
			
			
			
			2020-02-10 14:08:12 -08:00 
		 
	
		
			
			
			
			
			
			2020-02-25 15:37:37 -08:00 
		 
	
		
			
			
			
			
			
			2020-02-25 15:37:37 -08:00 
		 
	
		
			
			
			
			
			
			2020-02-07 14:09:47 -08:00 
		 
	
		
	
		
			
			
			
			
			
			2020-02-12 08:16:26 -05:00 
		 
	
		
			
			
			
			
			
			2020-03-22 10:55:11 -07:00 
		 
	
		
			
			
			
			
			
			2020-03-24 16:06:45 -07:00 
		 
	
		
			
			
			
			
			
			2020-02-15 12:20:20 -08:00 
		 
	
		
			
			
			
			
			
			2020-02-07 14:09:47 -08:00 
		 
	
		
			
			
			
			
			
			2020-02-25 14:09:39 -08:00 
		 
	
		
			
			
			
			
			
			2020-02-18 11:02:14 -08:00 
		 
	
		
			
			
			
			
			
			2020-03-22 10:55:11 -07:00 
		 
	
		
			
			
			
			
			
			2020-03-22 10:55:11 -07:00 
		 
	
		
			
			
			
			
			
			2020-02-07 14:09:47 -08:00 
		 
	
		
			
			
			
			
			
			2020-02-25 15:37:37 -08:00 
		 
	
		
	
		
	
		
			
			
			
			
			
			2020-02-15 12:20:20 -08:00 
		 
	
		
			
			
			
			
			
			2020-03-08 12:42:08 -07:00 
		 
	
		
			
			
			
			
			
			2020-02-10 14:08:12 -08:00 
		 
	
		
			
			
			
			
			
			2020-02-12 10:39:01 -08:00 
		 
	
		
			
			
			
			
			
			2020-02-10 14:08:12 -08:00 
		 
	
		
			
			
			
			
			
			2020-02-11 17:43:35 -08:00 
		 
	
		
			
			
			
			
			
			2020-02-21 20:01:21 -05:00 
		 
	
		
			
			
			
			
			
			2020-02-12 08:16:26 -05:00 
		 
	
		
			
			
			
			
			
			2020-03-12 08:02:06 -04:00 
		 
	
		
			
			
			
			
			
			2020-02-11 14:14:59 -08:00 
		 
	
		
			
			
			
			
			
			2020-02-25 15:37:37 -08:00 
		 
	
		
			
			
			
			
			
			2020-02-10 14:08:12 -08:00 
		 
	
		
			
			
			
			
			
			2020-02-07 14:09:47 -08:00 
		 
	
		
			
			
			
			
			
			2020-02-25 15:37:37 -08:00 
		 
	
		
	
		
			
			
			
			
			
			2020-02-21 09:53:45 -05:00 
		 
	
		
	
		
	
		
			
			
			
			
			
			2020-02-28 17:11:24 -08:00 
		 
	
		
			
			
			
			
			
			2020-02-25 15:37:37 -08:00 
		 
	
		
			
			
			
			
			
			2020-02-05 12:04:56 -08:00 
		 
	
		
	
		
			
			
			
			
			
			2020-02-27 17:20:34 -08:00 
		 
	
		
			
			
			
			
			
			2020-02-13 17:50:59 -08:00 
		 
	
		
	
		
			
			
			
			
			
			2020-02-10 14:08:12 -08:00 
		 
	
		
			
			
			
			
			
			2020-02-07 14:09:47 -08:00 
		 
	
		
			
			
			
			
			
			2020-02-05 13:04:16 -08:00 
		 
	
		
			
			
			
			
			
			2020-02-27 11:06:49 -08:00 
		 
	
		
			
			
			
			
			
			2020-02-10 14:08:12 -08:00 
		 
	
		
			
			
			
			
			
			2020-02-13 16:43:19 -08:00 
		 
	
		
			
			
			
			
			
			2020-02-25 14:09:39 -08:00 
		 
	
		
			
			
			
			
			
			2020-02-26 13:14:09 -08:00 
		 
	
		
			
			
			
			
			
			2020-03-22 10:55:11 -07:00 
		 
	
		
	
		
			
			
			
			
			
			2020-03-06 17:13:50 -08:00 
		 
	
		
			
			
			
			
			
			2020-02-26 13:14:09 -08:00 
		 
	
		
			
			
			
			
			
			2020-02-25 14:09:39 -08:00 
		 
	
		
			
			
			
			
			
			2020-02-13 17:50:59 -08:00 
		 
	
		
			
			
			
			
			
			2020-02-06 17:24:43 -08:00 
		 
	
		
			
			
			
			
			
			2020-02-10 14:08:12 -08:00 
		 
	
		
			
			
			
			
			
			2020-02-07 14:09:47 -08:00