Skip to content

Commit faf4879

Browse files
AidanLovelacedemurgos
authored andcommitted
Mark isFavorite in ContactGroup as optional
- Reported by @MrKoookaburra in #73 - Closes #78 (superseded)
1 parent e79d10f commit faf4879

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

CHANGELOG.md

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
- **[Fix]** Do not throw on unexpected extra keys when reading responses.
44
- **[Fix]** Fix message host resolution (API change).
5+
- **[Fix]** Mark `isFavorite` in `ContactGroup` as optional.
6+
- **[Fix]** Mark `name` in `ContactProfile` as optional.
57

68
# 0.0.14 (2018-01-12)
79

src/lib/types/contact-group.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,14 @@ import { Ucs2StringType } from "kryo/types/ucs2-string";
1616
export interface ContactGroup {
1717
id: string;
1818
name: string;
19-
isFavorite: boolean;
19+
isFavorite?: boolean;
2020
}
2121

2222
export const $ContactGroup: DocumentType<ContactGroup> = new DocumentType<ContactGroup>({
2323
properties: {
2424
id: {type: new Ucs2StringType({maxLength: Infinity})},
2525
name: {type: new Ucs2StringType({maxLength: Infinity})},
26-
isFavorite: {type: new BooleanType()},
26+
isFavorite: {type: new BooleanType(), optional: true},
2727
},
2828
rename: CaseStyle.SnakeCase,
2929
ignoreExtraKeys: true,

0 commit comments

Comments
 (0)