Style Guide: Additional message examples, a few fixes to enable

This commit is contained in:
Scott Nonnenberg 2018-04-16 18:17:38 -07:00
parent 6a4acc813c
commit a563dc8b37
No known key found for this signature in database
GPG key ID: 5F82280C35134661
6 changed files with 272 additions and 7 deletions

View file

@ -66,6 +66,8 @@ function makeObjectUrl(data: ArrayBuffer, contentType: string): string {
}
const ourNumber = '+12025559999';
const groupNumber = '+12025550099';
export {
mp3,
@ -87,6 +89,7 @@ export {
portraitTeal,
portraitTealObjectUrl,
ourNumber,
groupNumber,
};
@ -180,10 +183,22 @@ const me = parent.ConversationController.dangerouslyCreateAndAdd({
color: 'light_blue',
});
const group = parent.ConversationController.dangerouslyCreateAndAdd({
id: groupNumber,
name: 'A place for sharing cats',
type: 'group',
});
group.contactCollection.add(me);
group.contactCollection.add(CONTACTS[0]);
group.contactCollection.add(CONTACTS[1]);
group.contactCollection.add(CONTACTS[2]);
export {
COLORS,
CONTACTS,
me,
group,
};
parent.textsecure.storage.user.getNumber = () => ourNumber;