Commit graph

21 commits

Author SHA1 Message Date
Audric Ackermann 6860875477
remove setIdentifier and make identifier optional in constructor 2020-05-26 15:25:18 +10:00
Audric Ackermann da8999263b
make identifier a uuid 2020-05-26 14:41:41 +10:00
Audric Ackermann 2acba52933
use undefined or ? rather than null 2020-05-26 11:13:14 +10:00
Audric Ackermann cb74c9fe1d
use extends to extends typescript constructor parameters 2020-05-26 11:11:32 +10:00
Audric Ackermann 7191038f21
add SessioNEstablishedMessage and tests 2020-05-26 10:53:26 +10:00
Audric Ackermann 46a48406c7
add EndSession and SessionReset messages & tests 2020-05-26 10:45:06 +10:00
Audric Ackermann 601d978883
make OutgoingMessage interface an abstract class and add setIdentifier 2020-05-26 09:24:12 +10:00
Audric Ackermann 798efd8e00
use export* syntax to clean ts index.ts 2020-05-25 17:25:30 +10:00
Audric Ackermann 9ea95e59fa
add GroupInvitationMessage and tests 2020-05-25 16:38:52 +10:00
Audric Ackermann 56d744fda9
add TypingMessage and tests 2020-05-25 16:38:05 +10:00
Audric Ackermann 956491ec82
session established message with ttl of 5 minutes 2020-05-25 14:05:46 +10:00
Audric Ackermann fa26ff9e32
pass args by {} and add deviceLink tests 2020-05-25 11:40:17 +10:00
Audric Ackermann f1244f3031
add device unlink and receiptMessage class and tests 2020-05-22 17:50:45 +10:00
Audric Ackermann 81cb1122f8
remove window.getMessageTTL 2020-05-22 17:49:48 +10:00
Audric Ackermann e45ef6f291
add test for unpairing request message 2020-05-22 11:43:17 +10:00
Audric Ackermann 443f177daa
ContentMessage remove auto padding 2020-05-22 11:30:54 +10:00
Audric Ackermann 892b2f8474
add ttl as abstract method so each message can define its own 2020-05-22 09:58:32 +10:00
Audric Ackermann f4a24c5c98
add empty messages ts files 2020-05-22 09:23:38 +10:00
Mikunj 15560a4cb5 Linting and comments 2020-05-21 16:44:18 +10:00
Mikunj 46b3032a05 Remove MessageCategory.
We don't need this as we can infer the encryption type from the message.
2020-05-21 16:31:15 +10:00
Mikunj 9bd08ba930 Initial barebone commit for messages refactor 2020-05-21 16:14:22 +10:00