mirror of
https://github.com/zulip/zulip.git
synced 2025-11-03 05:23:35 +00:00
Eliminate people.reify() and mostly ignore unknown users.
If I try to send a message to an unknown user (which is possible for some types of realms), then I simply ignore them during the send codepath, so that I don't later need to patch up their attributes.
This commit is contained in:
@@ -84,30 +84,6 @@ var _ = global._;
|
||||
assert.equal(person.full_name, 'Original');
|
||||
}());
|
||||
|
||||
(function test_reify() {
|
||||
var full_person = {
|
||||
email: 'foo@example.com',
|
||||
full_name: 'Foo Barson'
|
||||
};
|
||||
|
||||
// If we don't have a skeleton object, this should quietly succeed.
|
||||
people.reify(full_person);
|
||||
|
||||
var skeleton = {
|
||||
email: 'foo@example.com',
|
||||
full_name: 'foo@example.com',
|
||||
skeleton: true
|
||||
};
|
||||
people.add(skeleton);
|
||||
|
||||
people.reify(full_person);
|
||||
var person = people.get_by_email('foo@example.com');
|
||||
assert.equal(person.full_name, 'Foo Barson');
|
||||
|
||||
// Our follow-up reify() call should also quietly succeed.
|
||||
people.reify(full_person);
|
||||
}());
|
||||
|
||||
(function test_get_rest_of_realm() {
|
||||
var myself = {
|
||||
email: 'myself@example.com',
|
||||
|
||||
Reference in New Issue
Block a user