@wireapp/core 17.31.0 → 17.31.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (237) hide show
  1. package/CHANGELOG.md +35 -0
  2. package/package.json +9 -9
  3. package/src/main/Account.js.map +0 -1
  4. package/src/main/Account.test.browser.js +0 -114
  5. package/src/main/Account.test.node.d.ts +0 -1
  6. package/src/main/Account.test.node.js +0 -214
  7. package/src/main/Account.test.node.js.map +0 -1
  8. package/src/main/Account.test.node.ts +0 -236
  9. package/src/main/Account.ts +0 -401
  10. package/src/main/CoreError.js.map +0 -1
  11. package/src/main/CoreError.ts +0 -30
  12. package/src/main/auth/LoginSanitizer.js.map +0 -1
  13. package/src/main/auth/LoginSanitizer.test.node.d.ts +0 -1
  14. package/src/main/auth/LoginSanitizer.test.node.js +0 -56
  15. package/src/main/auth/LoginSanitizer.test.node.js.map +0 -1
  16. package/src/main/auth/LoginSanitizer.test.node.ts +0 -68
  17. package/src/main/auth/LoginSanitizer.ts +0 -44
  18. package/src/main/auth/index.js.map +0 -1
  19. package/src/main/auth/index.ts +0 -20
  20. package/src/main/broadcast/AvailabilityType.js.map +0 -1
  21. package/src/main/broadcast/AvailabilityType.ts +0 -22
  22. package/src/main/broadcast/BroadcastService.js.map +0 -1
  23. package/src/main/broadcast/BroadcastService.ts +0 -66
  24. package/src/main/broadcast/index.js.map +0 -1
  25. package/src/main/broadcast/index.ts +0 -21
  26. package/src/main/client/ClientBackendRepository.js.map +0 -1
  27. package/src/main/client/ClientBackendRepository.ts +0 -33
  28. package/src/main/client/ClientDatabaseRepository.js.map +0 -1
  29. package/src/main/client/ClientDatabaseRepository.ts +0 -130
  30. package/src/main/client/ClientInfo.js.map +0 -1
  31. package/src/main/client/ClientInfo.ts +0 -28
  32. package/src/main/client/ClientService.js.map +0 -1
  33. package/src/main/client/ClientService.ts +0 -116
  34. package/src/main/client/index.js.map +0 -1
  35. package/src/main/client/index.ts +0 -23
  36. package/src/main/connection/ConnectionService.js.map +0 -1
  37. package/src/main/connection/ConnectionService.ts +0 -49
  38. package/src/main/connection/index.js.map +0 -1
  39. package/src/main/connection/index.ts +0 -20
  40. package/src/main/conversation/AbortReason.js.map +0 -1
  41. package/src/main/conversation/AbortReason.ts +0 -22
  42. package/src/main/conversation/AssetService.js.map +0 -1
  43. package/src/main/conversation/AssetService.test.node.d.ts +0 -1
  44. package/src/main/conversation/AssetService.test.node.js +0 -61
  45. package/src/main/conversation/AssetService.test.node.js.map +0 -1
  46. package/src/main/conversation/AssetService.test.node.ts +0 -65
  47. package/src/main/conversation/AssetService.ts +0 -60
  48. package/src/main/conversation/AssetTransferState.js.map +0 -1
  49. package/src/main/conversation/AssetTransferState.ts +0 -23
  50. package/src/main/conversation/ClientActionType.js.map +0 -1
  51. package/src/main/conversation/ClientActionType.ts +0 -20
  52. package/src/main/conversation/ConversationMapper.js.map +0 -1
  53. package/src/main/conversation/ConversationMapper.test.node.d.ts +0 -1
  54. package/src/main/conversation/ConversationMapper.test.node.js +0 -111
  55. package/src/main/conversation/ConversationMapper.test.node.js.map +0 -1
  56. package/src/main/conversation/ConversationMapper.test.node.ts +0 -154
  57. package/src/main/conversation/ConversationMapper.ts +0 -56
  58. package/src/main/conversation/ConversationService.js.map +0 -1
  59. package/src/main/conversation/ConversationService.test.node.d.ts +0 -1
  60. package/src/main/conversation/ConversationService.test.node.js +0 -344
  61. package/src/main/conversation/ConversationService.test.node.js.map +0 -1
  62. package/src/main/conversation/ConversationService.test.node.ts +0 -416
  63. package/src/main/conversation/ConversationService.ts +0 -1024
  64. package/src/main/conversation/GenericMessageType.js.map +0 -1
  65. package/src/main/conversation/GenericMessageType.ts +0 -44
  66. package/src/main/conversation/MessageTimer.js.map +0 -1
  67. package/src/main/conversation/MessageTimer.test.node.d.ts +0 -1
  68. package/src/main/conversation/MessageTimer.test.node.js +0 -88
  69. package/src/main/conversation/MessageTimer.test.node.js.map +0 -1
  70. package/src/main/conversation/MessageTimer.test.node.ts +0 -103
  71. package/src/main/conversation/MessageTimer.ts +0 -56
  72. package/src/main/conversation/ReactionType.js.map +0 -1
  73. package/src/main/conversation/ReactionType.ts +0 -23
  74. package/src/main/conversation/content/AssetContent.js.map +0 -1
  75. package/src/main/conversation/content/AssetContent.ts +0 -71
  76. package/src/main/conversation/content/ButtonActionConfirmationContent.js.map +0 -1
  77. package/src/main/conversation/content/ButtonActionConfirmationContent.ts +0 -21
  78. package/src/main/conversation/content/ButtonActionContent.js.map +0 -1
  79. package/src/main/conversation/content/ButtonActionContent.ts +0 -21
  80. package/src/main/conversation/content/CallingContent.js.map +0 -1
  81. package/src/main/conversation/content/CallingContent.ts +0 -20
  82. package/src/main/conversation/content/ClearedContent.js.map +0 -1
  83. package/src/main/conversation/content/ClearedContent.ts +0 -21
  84. package/src/main/conversation/content/ClientActionContent.js.map +0 -1
  85. package/src/main/conversation/content/ClientActionContent.ts +0 -22
  86. package/src/main/conversation/content/ClientAddContent.js.map +0 -1
  87. package/src/main/conversation/content/ClientAddContent.ts +0 -24
  88. package/src/main/conversation/content/ClientRemoveContent.js.map +0 -1
  89. package/src/main/conversation/content/ClientRemoveContent.ts +0 -25
  90. package/src/main/conversation/content/CompositeContent.js.map +0 -1
  91. package/src/main/conversation/content/CompositeContent.ts +0 -21
  92. package/src/main/conversation/content/ConfirmationContent.js.map +0 -1
  93. package/src/main/conversation/content/ConfirmationContent.ts +0 -21
  94. package/src/main/conversation/content/ContentType.js.map +0 -1
  95. package/src/main/conversation/content/ContentType.ts +0 -112
  96. package/src/main/conversation/content/ConversationContent.js.map +0 -1
  97. package/src/main/conversation/content/ConversationContent.ts +0 -71
  98. package/src/main/conversation/content/DeletedContent.js.map +0 -1
  99. package/src/main/conversation/content/DeletedContent.ts +0 -21
  100. package/src/main/conversation/content/EditedTextContent.js.map +0 -1
  101. package/src/main/conversation/content/EditedTextContent.ts +0 -31
  102. package/src/main/conversation/content/FileContent.js.map +0 -1
  103. package/src/main/conversation/content/FileContent.ts +0 -32
  104. package/src/main/conversation/content/HiddenContent.js.map +0 -1
  105. package/src/main/conversation/content/HiddenContent.ts +0 -21
  106. package/src/main/conversation/content/ImageContent.js.map +0 -1
  107. package/src/main/conversation/content/ImageContent.ts +0 -25
  108. package/src/main/conversation/content/KnockContent.js.map +0 -1
  109. package/src/main/conversation/content/KnockContent.ts +0 -21
  110. package/src/main/conversation/content/LinkPreviewContent.js.map +0 -1
  111. package/src/main/conversation/content/LinkPreviewContent.ts +0 -32
  112. package/src/main/conversation/content/LocationContent.js.map +0 -1
  113. package/src/main/conversation/content/LocationContent.ts +0 -29
  114. package/src/main/conversation/content/MentionContent.js.map +0 -1
  115. package/src/main/conversation/content/MentionContent.ts +0 -21
  116. package/src/main/conversation/content/QuoteContent.js.map +0 -1
  117. package/src/main/conversation/content/QuoteContent.ts +0 -29
  118. package/src/main/conversation/content/ReactionContent.js.map +0 -1
  119. package/src/main/conversation/content/ReactionContent.ts +0 -27
  120. package/src/main/conversation/content/TextContent.js.map +0 -1
  121. package/src/main/conversation/content/TextContent.ts +0 -29
  122. package/src/main/conversation/content/TweetContent.js.map +0 -1
  123. package/src/main/conversation/content/TweetContent.ts +0 -21
  124. package/src/main/conversation/content/index.js.map +0 -1
  125. package/src/main/conversation/content/index.ts +0 -49
  126. package/src/main/conversation/index.js.map +0 -1
  127. package/src/main/conversation/index.ts +0 -28
  128. package/src/main/conversation/message/CompositeContentBuilder.js.map +0 -1
  129. package/src/main/conversation/message/CompositeContentBuilder.ts +0 -60
  130. package/src/main/conversation/message/Message.js.map +0 -1
  131. package/src/main/conversation/message/Message.ts +0 -24
  132. package/src/main/conversation/message/MessageBuilder.js.map +0 -1
  133. package/src/main/conversation/message/MessageBuilder.test.browser.js +0 -27
  134. package/src/main/conversation/message/MessageBuilder.ts +0 -488
  135. package/src/main/conversation/message/MessageService.js.map +0 -1
  136. package/src/main/conversation/message/MessageService.test.node.d.ts +0 -1
  137. package/src/main/conversation/message/MessageService.test.node.js +0 -308
  138. package/src/main/conversation/message/MessageService.test.node.js.map +0 -1
  139. package/src/main/conversation/message/MessageService.test.node.ts +0 -398
  140. package/src/main/conversation/message/MessageService.ts +0 -383
  141. package/src/main/conversation/message/MessageToProtoMapper.js.map +0 -1
  142. package/src/main/conversation/message/MessageToProtoMapper.ts +0 -114
  143. package/src/main/conversation/message/OtrMessage.js.map +0 -1
  144. package/src/main/conversation/message/OtrMessage.ts +0 -160
  145. package/src/main/conversation/message/PayloadBundle.js.map +0 -1
  146. package/src/main/conversation/message/PayloadBundle.ts +0 -101
  147. package/src/main/conversation/message/TeamMessage.js.map +0 -1
  148. package/src/main/conversation/message/TeamMessage.ts +0 -72
  149. package/src/main/conversation/message/TextContentBuilder.js.map +0 -1
  150. package/src/main/conversation/message/TextContentBuilder.ts +0 -88
  151. package/src/main/conversation/message/UserClientsUtil.js.map +0 -1
  152. package/src/main/conversation/message/UserClientsUtil.ts +0 -44
  153. package/src/main/conversation/message/UserClientsUtils.test.node.d.ts +0 -1
  154. package/src/main/conversation/message/UserClientsUtils.test.node.js +0 -42
  155. package/src/main/conversation/message/UserClientsUtils.test.node.js.map +0 -1
  156. package/src/main/conversation/message/UserClientsUtils.test.node.ts +0 -44
  157. package/src/main/conversation/message/UserMessage.js.map +0 -1
  158. package/src/main/conversation/message/UserMessage.ts +0 -95
  159. package/src/main/cryptography/AssetCryptography.browser.js.map +0 -1
  160. package/src/main/cryptography/AssetCryptography.browser.ts +0 -76
  161. package/src/main/cryptography/AssetCryptography.node.js.map +0 -1
  162. package/src/main/cryptography/AssetCryptography.node.ts +0 -85
  163. package/src/main/cryptography/CryptographyDatabaseRepository.js.map +0 -1
  164. package/src/main/cryptography/CryptographyDatabaseRepository.ts +0 -44
  165. package/src/main/cryptography/CryptographyService.js.map +0 -1
  166. package/src/main/cryptography/CryptographyService.test.browser.js +0 -195
  167. package/src/main/cryptography/CryptographyService.test.node.d.ts +0 -1
  168. package/src/main/cryptography/CryptographyService.test.node.js +0 -228
  169. package/src/main/cryptography/CryptographyService.test.node.js.map +0 -1
  170. package/src/main/cryptography/CryptographyService.test.node.ts +0 -246
  171. package/src/main/cryptography/CryptographyService.ts +0 -246
  172. package/src/main/cryptography/EncryptedAsset.js.map +0 -1
  173. package/src/main/cryptography/EncryptedAsset.ts +0 -30
  174. package/src/main/cryptography/GenericMessageMapper.js.map +0 -1
  175. package/src/main/cryptography/GenericMessageMapper.ts +0 -274
  176. package/src/main/cryptography/MessageHashService.js.map +0 -1
  177. package/src/main/cryptography/MessageHashService.test.browser.js +0 -176
  178. package/src/main/cryptography/MessageHashService.test.node.d.ts +0 -1
  179. package/src/main/cryptography/MessageHashService.test.node.js +0 -138
  180. package/src/main/cryptography/MessageHashService.test.node.js.map +0 -1
  181. package/src/main/cryptography/MessageHashService.test.node.ts +0 -176
  182. package/src/main/cryptography/MessageHashService.ts +0 -109
  183. package/src/main/cryptography/SessionPayloadBundle.js.map +0 -1
  184. package/src/main/cryptography/SessionPayloadBundle.ts +0 -23
  185. package/src/main/cryptography/index.js.map +0 -1
  186. package/src/main/cryptography/index.ts +0 -23
  187. package/src/main/giphy/GiphyService.js.map +0 -1
  188. package/src/main/giphy/GiphyService.ts +0 -37
  189. package/src/main/giphy/index.js.map +0 -1
  190. package/src/main/giphy/index.ts +0 -20
  191. package/src/main/index.js.map +0 -1
  192. package/src/main/index.test.browser.js +0 -22
  193. package/src/main/index.ts +0 -34
  194. package/src/main/notification/NotificationBackendRepository.js.map +0 -1
  195. package/src/main/notification/NotificationBackendRepository.ts +0 -33
  196. package/src/main/notification/NotificationDatabaseRepository.js.map +0 -1
  197. package/src/main/notification/NotificationDatabaseRepository.ts +0 -74
  198. package/src/main/notification/NotificationService.js.map +0 -1
  199. package/src/main/notification/NotificationService.test.browser.js +0 -179
  200. package/src/main/notification/NotificationService.test.node.d.ts +0 -1
  201. package/src/main/notification/NotificationService.test.node.js +0 -99
  202. package/src/main/notification/NotificationService.test.node.js.map +0 -1
  203. package/src/main/notification/NotificationService.test.node.ts +0 -124
  204. package/src/main/notification/NotificationService.ts +0 -260
  205. package/src/main/notification/index.js.map +0 -1
  206. package/src/main/notification/index.ts +0 -20
  207. package/src/main/self/SelfService.js.map +0 -1
  208. package/src/main/self/SelfService.ts +0 -59
  209. package/src/main/self/index.js.map +0 -1
  210. package/src/main/self/index.ts +0 -20
  211. package/src/main/team/TeamService.js.map +0 -1
  212. package/src/main/team/TeamService.ts +0 -68
  213. package/src/main/team/index.js.map +0 -1
  214. package/src/main/team/index.ts +0 -20
  215. package/src/main/test/CryptographyHelper.js.map +0 -1
  216. package/src/main/test/CryptographyHelper.ts +0 -57
  217. package/src/main/test/PayloadHelper.js.map +0 -1
  218. package/src/main/test/PayloadHelper.ts +0 -60
  219. package/src/main/user/UserMapper.js.map +0 -1
  220. package/src/main/user/UserMapper.test.node.d.ts +0 -1
  221. package/src/main/user/UserMapper.test.node.js +0 -55
  222. package/src/main/user/UserMapper.test.node.js.map +0 -1
  223. package/src/main/user/UserMapper.test.node.ts +0 -63
  224. package/src/main/user/UserMapper.ts +0 -92
  225. package/src/main/user/UserService.js.map +0 -1
  226. package/src/main/user/UserService.test.node.js +0 -141
  227. package/src/main/user/UserService.ts +0 -98
  228. package/src/main/user/index.js.map +0 -1
  229. package/src/main/user/index.ts +0 -20
  230. package/src/main/util/TypePredicateUtil.js.map +0 -1
  231. package/src/main/util/TypePredicateUtil.test.node.d.ts +0 -1
  232. package/src/main/util/TypePredicateUtil.test.node.js +0 -42
  233. package/src/main/util/TypePredicateUtil.test.node.js.map +0 -1
  234. package/src/main/util/TypePredicateUtil.test.node.ts +0 -44
  235. package/src/main/util/TypePredicateUtil.ts +0 -52
  236. package/src/main/util/index.js.map +0 -1
  237. package/src/main/util/index.ts +0 -20
@@ -1 +0,0 @@
1
- {"version":3,"file":"GenericMessageType.js","sourceRoot":"","sources":["GenericMessageType.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;GAiBG;;;AAEH,wEAAwE;AACxE,IAAY,kBAuBX;AAvBD,WAAY,kBAAkB;IAC5B,qCAAe,CAAA;IACf,gDAA0B,CAAA;IAC1B,8CAAwB,CAAA;IACxB,mDAA6B,CAAA;IAC7B,oDAA8B,CAAA;IAC9B,6EAAuD,CAAA;IACvD,yCAAmB,CAAA;IACnB,yCAAmB,CAAA;IACnB,oDAA8B,CAAA;IAC9B,6CAAuB,CAAA;IACvB,mDAA6B,CAAA;IAC7B,yCAAmB,CAAA;IACnB,uCAAiB,CAAA;IACjB,6CAAuB,CAAA;IACvB,2CAAqB,CAAA;IACrB,uCAAiB,CAAA;IACjB,qCAAe,CAAA;IACf,qCAAe,CAAA;IACf,4CAAsB,CAAA;IACtB,2CAAqB,CAAA;IACrB,2CAAqB,CAAA;IACrB,mCAAa,CAAA;AACf,CAAC,EAvBW,kBAAkB,GAAlB,0BAAkB,KAAlB,0BAAkB,QAuB7B"}
@@ -1,44 +0,0 @@
1
- /*
2
- * Wire
3
- * Copyright (C) 2018 Wire Swiss GmbH
4
- *
5
- * This program is free software: you can redistribute it and/or modify
6
- * it under the terms of the GNU General Public License as published by
7
- * the Free Software Foundation, either version 3 of the License, or
8
- * (at your option) any later version.
9
- *
10
- * This program is distributed in the hope that it will be useful,
11
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
- * GNU General Public License for more details.
14
- *
15
- * You should have received a copy of the GNU General Public License
16
- * along with this program. If not, see http://www.gnu.org/licenses/.
17
- *
18
- */
19
-
20
- // Enum values come from "IGenericMessage" properties in "Protobuf.d.ts"
21
- export enum GenericMessageType {
22
- ASSET = 'asset',
23
- ASSET_ABORT = 'assetAbort',
24
- ASSET_META = 'assetMeta',
25
- AVAILABILITY = 'availability',
26
- BUTTON_ACTION = 'buttonAction',
27
- BUTTON_ACTION_CONFIRMATION = 'buttonActionConfirmation',
28
- CALLING = 'calling',
29
- CLEARED = 'cleared',
30
- CLIENT_ACTION = 'clientAction',
31
- COMPOSITE = 'composite',
32
- CONFIRMATION = 'confirmation',
33
- DELETED = 'deleted',
34
- EDITED = 'edited',
35
- EPHEMERAL = 'ephemeral',
36
- EXTERNAL = 'external',
37
- HIDDEN = 'hidden',
38
- IMAGE = 'image',
39
- KNOCK = 'knock',
40
- LAST_READ = 'lastRead',
41
- LOCATION = 'location',
42
- REACTION = 'reaction',
43
- TEXT = 'text',
44
- }
@@ -1 +0,0 @@
1
- {"version":3,"file":"MessageTimer.js","sourceRoot":"","sources":["MessageTimer.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;GAiBG;;;AAEH,MAAa,YAAY;IAIvB;QACE,IAAI,CAAC,uBAAuB,GAAG,IAAI,GAAG,EAAE,CAAC;QACzC,IAAI,CAAC,kBAAkB,GAAG,IAAI,GAAG,EAAE,CAAC;IACtC,CAAC;IAEM,yBAAyB,CAAC,cAAsB;QACrD,OAAO,IAAI,CAAC,uBAAuB,CAAC,GAAG,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC;IAC/D,CAAC;IAEM,oBAAoB,CAAC,cAAsB;QAChD,OAAO,IAAI,CAAC,kBAAkB,CAAC,GAAG,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC;IAC1D,CAAC;IAEM,eAAe,CAAC,cAAsB;QAC3C,OAAO,IAAI,CAAC,yBAAyB,CAAC,cAAc,CAAC,IAAI,IAAI,CAAC,oBAAoB,CAAC,cAAc,CAAC,CAAC;IACrG,CAAC;IAEM,yBAAyB,CAAC,cAAsB,EAAE,YAAoB;QAC3E,IAAI,YAAY,KAAK,CAAC,EAAE;YACtB,IAAI,CAAC,uBAAuB,CAAC,MAAM,CAAC,cAAc,CAAC,CAAC;SACrD;aAAM;YACL,IAAI,CAAC,uBAAuB,CAAC,GAAG,CAAC,cAAc,EAAE,YAAY,CAAC,CAAC;SAChE;IACH,CAAC;IAEM,oBAAoB,CAAC,cAAsB,EAAE,YAAoB;QACtE,IAAI,YAAY,KAAK,CAAC,EAAE;YACtB,IAAI,CAAC,kBAAkB,CAAC,MAAM,CAAC,cAAc,CAAC,CAAC;SAChD;aAAM;YACL,IAAI,CAAC,kBAAkB,CAAC,GAAG,CAAC,cAAc,EAAE,YAAY,CAAC,CAAC;SAC3D;IACH,CAAC;CACF;AApCD,oCAoCC"}
@@ -1 +0,0 @@
1
- export {};
@@ -1,88 +0,0 @@
1
- "use strict";
2
- /*
3
- * Wire
4
- * Copyright (C) 2019 Wire Swiss GmbH
5
- *
6
- * This program is free software: you can redistribute it and/or modify
7
- * it under the terms of the GNU General Public License as published by
8
- * the Free Software Foundation, either version 3 of the License, or
9
- * (at your option) any later version.
10
- *
11
- * This program is distributed in the hope that it will be useful,
12
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
- * GNU General Public License for more details.
15
- *
16
- * You should have received a copy of the GNU General Public License
17
- * along with this program. If not, see http://www.gnu.org/licenses/.
18
- *
19
- */
20
- Object.defineProperty(exports, "__esModule", { value: true });
21
- const MessageTimer_1 = require("./MessageTimer");
22
- describe('TimerService', () => {
23
- describe('"getMessageTimer"', () => {
24
- it('returns 0 when no timer is set.', () => {
25
- const conversationId = 'a0e0f130-8c21-11df-92d9-95795a3bcd40';
26
- const messageTimer = new MessageTimer_1.MessageTimer();
27
- const expiry = messageTimer.getMessageTimer(conversationId);
28
- expect(expiry).toBe(0);
29
- });
30
- it('returns the expiration timer when a local timer is set.', () => {
31
- const conversationId = 'a0e0f130-8c21-11df-92d9-95795a3bcd40';
32
- const messageTimer = new MessageTimer_1.MessageTimer();
33
- const oneMinute = 60000;
34
- messageTimer.setMessageLevelTimer(conversationId, oneMinute);
35
- let expiry = messageTimer.getMessageTimer(conversationId);
36
- expect(expiry).toBe(oneMinute);
37
- expiry = messageTimer.getMessageLevelTimer(conversationId);
38
- expect(expiry).toBe(oneMinute);
39
- });
40
- it('returns the expiration timer when a global timer is set.', () => {
41
- const conversationId = 'a0e0f130-8c21-11df-92d9-95795a3bcd40';
42
- const messageTimer = new MessageTimer_1.MessageTimer();
43
- const oneMinute = 60000;
44
- messageTimer.setConversationLevelTimer(conversationId, oneMinute);
45
- let expiry = messageTimer.getMessageTimer(conversationId);
46
- expect(expiry).toBe(oneMinute);
47
- expiry = messageTimer.getConversationLevelTimer(conversationId);
48
- expect(expiry).toBe(oneMinute);
49
- });
50
- it('returns the conversation level timer when a conversation level timer and a message level timer is set.', () => {
51
- const conversationId = 'a0e0f130-8c21-11df-92d9-95795a3bcd40';
52
- const messageTimer = new MessageTimer_1.MessageTimer();
53
- const oneMinute = 60000;
54
- const twoMinutes = 120000;
55
- messageTimer.setMessageLevelTimer(conversationId, oneMinute);
56
- messageTimer.setConversationLevelTimer(conversationId, twoMinutes);
57
- const expiry = messageTimer.getMessageTimer(conversationId);
58
- expect(expiry).toBe(twoMinutes);
59
- });
60
- it('can remove the conversation level timer.', () => {
61
- const conversationId = 'a0e0f130-8c21-11df-92d9-95795a3bcd40';
62
- const messageTimer = new MessageTimer_1.MessageTimer();
63
- const oneMinute = 60000;
64
- messageTimer.setMessageLevelTimer(conversationId, oneMinute);
65
- let expiry = messageTimer.getMessageLevelTimer(conversationId);
66
- expect(expiry).toBe(oneMinute);
67
- expect(messageTimer['messageLevelTimers'].size).toBe(1);
68
- messageTimer.setMessageLevelTimer(conversationId, 0);
69
- expiry = messageTimer.getMessageLevelTimer(conversationId);
70
- expect(expiry).toBe(0);
71
- expect(messageTimer['messageLevelTimers'].size).toBe(0);
72
- });
73
- it('can remove the message level timer.', () => {
74
- const conversationId = 'a0e0f130-8c21-11df-92d9-95795a3bcd40';
75
- const messageTimer = new MessageTimer_1.MessageTimer();
76
- const oneMinute = 60000;
77
- messageTimer.setConversationLevelTimer(conversationId, oneMinute);
78
- let expiry = messageTimer.getConversationLevelTimer(conversationId);
79
- expect(expiry).toBe(oneMinute);
80
- expect(messageTimer['conversationLevelTimers'].size).toBe(1);
81
- messageTimer.setConversationLevelTimer(conversationId, 0);
82
- expiry = messageTimer.getConversationLevelTimer(conversationId);
83
- expect(expiry).toBe(0);
84
- expect(messageTimer['conversationLevelTimers'].size).toBe(0);
85
- });
86
- });
87
- });
88
- //# sourceMappingURL=MessageTimer.test.node.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"MessageTimer.test.node.js","sourceRoot":"","sources":["MessageTimer.test.node.ts"],"names":[],"mappings":"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"}
@@ -1,103 +0,0 @@
1
- /*
2
- * Wire
3
- * Copyright (C) 2019 Wire Swiss GmbH
4
- *
5
- * This program is free software: you can redistribute it and/or modify
6
- * it under the terms of the GNU General Public License as published by
7
- * the Free Software Foundation, either version 3 of the License, or
8
- * (at your option) any later version.
9
- *
10
- * This program is distributed in the hope that it will be useful,
11
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
- * GNU General Public License for more details.
14
- *
15
- * You should have received a copy of the GNU General Public License
16
- * along with this program. If not, see http://www.gnu.org/licenses/.
17
- *
18
- */
19
-
20
- import {MessageTimer} from './MessageTimer';
21
-
22
- describe('TimerService', () => {
23
- describe('"getMessageTimer"', () => {
24
- it('returns 0 when no timer is set.', () => {
25
- const conversationId = 'a0e0f130-8c21-11df-92d9-95795a3bcd40';
26
- const messageTimer = new MessageTimer();
27
- const expiry = messageTimer.getMessageTimer(conversationId);
28
- expect(expiry).toBe(0);
29
- });
30
-
31
- it('returns the expiration timer when a local timer is set.', () => {
32
- const conversationId = 'a0e0f130-8c21-11df-92d9-95795a3bcd40';
33
- const messageTimer = new MessageTimer();
34
- const oneMinute = 60000;
35
-
36
- messageTimer.setMessageLevelTimer(conversationId, oneMinute);
37
- let expiry = messageTimer.getMessageTimer(conversationId);
38
- expect(expiry).toBe(oneMinute);
39
-
40
- expiry = messageTimer.getMessageLevelTimer(conversationId);
41
- expect(expiry).toBe(oneMinute);
42
- });
43
-
44
- it('returns the expiration timer when a global timer is set.', () => {
45
- const conversationId = 'a0e0f130-8c21-11df-92d9-95795a3bcd40';
46
- const messageTimer = new MessageTimer();
47
- const oneMinute = 60000;
48
-
49
- messageTimer.setConversationLevelTimer(conversationId, oneMinute);
50
- let expiry = messageTimer.getMessageTimer(conversationId);
51
- expect(expiry).toBe(oneMinute);
52
-
53
- expiry = messageTimer.getConversationLevelTimer(conversationId);
54
- expect(expiry).toBe(oneMinute);
55
- });
56
-
57
- it('returns the conversation level timer when a conversation level timer and a message level timer is set.', () => {
58
- const conversationId = 'a0e0f130-8c21-11df-92d9-95795a3bcd40';
59
- const messageTimer = new MessageTimer();
60
-
61
- const oneMinute = 60000;
62
- const twoMinutes = 120000;
63
-
64
- messageTimer.setMessageLevelTimer(conversationId, oneMinute);
65
- messageTimer.setConversationLevelTimer(conversationId, twoMinutes);
66
-
67
- const expiry = messageTimer.getMessageTimer(conversationId);
68
- expect(expiry).toBe(twoMinutes);
69
- });
70
-
71
- it('can remove the conversation level timer.', () => {
72
- const conversationId = 'a0e0f130-8c21-11df-92d9-95795a3bcd40';
73
- const messageTimer = new MessageTimer();
74
- const oneMinute = 60000;
75
-
76
- messageTimer.setMessageLevelTimer(conversationId, oneMinute);
77
- let expiry = messageTimer.getMessageLevelTimer(conversationId);
78
- expect(expiry).toBe(oneMinute);
79
- expect(messageTimer['messageLevelTimers'].size).toBe(1);
80
-
81
- messageTimer.setMessageLevelTimer(conversationId, 0);
82
- expiry = messageTimer.getMessageLevelTimer(conversationId);
83
- expect(expiry).toBe(0);
84
- expect(messageTimer['messageLevelTimers'].size).toBe(0);
85
- });
86
-
87
- it('can remove the message level timer.', () => {
88
- const conversationId = 'a0e0f130-8c21-11df-92d9-95795a3bcd40';
89
- const messageTimer = new MessageTimer();
90
- const oneMinute = 60000;
91
-
92
- messageTimer.setConversationLevelTimer(conversationId, oneMinute);
93
- let expiry = messageTimer.getConversationLevelTimer(conversationId);
94
- expect(expiry).toBe(oneMinute);
95
- expect(messageTimer['conversationLevelTimers'].size).toBe(1);
96
-
97
- messageTimer.setConversationLevelTimer(conversationId, 0);
98
- expiry = messageTimer.getConversationLevelTimer(conversationId);
99
- expect(expiry).toBe(0);
100
- expect(messageTimer['conversationLevelTimers'].size).toBe(0);
101
- });
102
- });
103
- });
@@ -1,56 +0,0 @@
1
- /*
2
- * Wire
3
- * Copyright (C) 2018 Wire Swiss GmbH
4
- *
5
- * This program is free software: you can redistribute it and/or modify
6
- * it under the terms of the GNU General Public License as published by
7
- * the Free Software Foundation, either version 3 of the License, or
8
- * (at your option) any later version.
9
- *
10
- * This program is distributed in the hope that it will be useful,
11
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
- * GNU General Public License for more details.
14
- *
15
- * You should have received a copy of the GNU General Public License
16
- * along with this program. If not, see http://www.gnu.org/licenses/.
17
- *
18
- */
19
-
20
- export class MessageTimer {
21
- private readonly conversationLevelTimers: Map<string, number>;
22
- private readonly messageLevelTimers: Map<string, number>;
23
-
24
- constructor() {
25
- this.conversationLevelTimers = new Map();
26
- this.messageLevelTimers = new Map();
27
- }
28
-
29
- public getConversationLevelTimer(conversationId: string): number {
30
- return this.conversationLevelTimers.get(conversationId) || 0;
31
- }
32
-
33
- public getMessageLevelTimer(conversationId: string): number {
34
- return this.messageLevelTimers.get(conversationId) || 0;
35
- }
36
-
37
- public getMessageTimer(conversationId: string): number {
38
- return this.getConversationLevelTimer(conversationId) || this.getMessageLevelTimer(conversationId);
39
- }
40
-
41
- public setConversationLevelTimer(conversationId: string, messageTimer: number): void {
42
- if (messageTimer === 0) {
43
- this.conversationLevelTimers.delete(conversationId);
44
- } else {
45
- this.conversationLevelTimers.set(conversationId, messageTimer);
46
- }
47
- }
48
-
49
- public setMessageLevelTimer(conversationId: string, messageTimer: number): void {
50
- if (messageTimer === 0) {
51
- this.messageLevelTimers.delete(conversationId);
52
- } else {
53
- this.messageLevelTimers.set(conversationId, messageTimer);
54
- }
55
- }
56
- }
@@ -1 +0,0 @@
1
- {"version":3,"file":"ReactionType.js","sourceRoot":"","sources":["ReactionType.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;GAiBG;;;AAEH,IAAY,YAGX;AAHD,WAAY,YAAY;IACtB,qCAAW,CAAA;IACX,yBAAS,CAAA;AACX,CAAC,EAHW,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAGvB"}
@@ -1,23 +0,0 @@
1
- /*
2
- * Wire
3
- * Copyright (C) 2018 Wire Swiss GmbH
4
- *
5
- * This program is free software: you can redistribute it and/or modify
6
- * it under the terms of the GNU General Public License as published by
7
- * the Free Software Foundation, either version 3 of the License, or
8
- * (at your option) any later version.
9
- *
10
- * This program is distributed in the hope that it will be useful,
11
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
- * GNU General Public License for more details.
14
- *
15
- * You should have received a copy of the GNU General Public License
16
- * along with this program. If not, see http://www.gnu.org/licenses/.
17
- *
18
- */
19
-
20
- export enum ReactionType {
21
- LIKE = '❤️',
22
- NONE = '',
23
- }
@@ -1 +0,0 @@
1
- {"version":3,"file":"AssetContent.js","sourceRoot":"","sources":["AssetContent.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;GAiBG"}
@@ -1,71 +0,0 @@
1
- /*
2
- * Wire
3
- * Copyright (C) 2018 Wire Swiss GmbH
4
- *
5
- * This program is free software: you can redistribute it and/or modify
6
- * it under the terms of the GNU General Public License as published by
7
- * the Free Software Foundation, either version 3 of the License, or
8
- * (at your option) any later version.
9
- *
10
- * This program is distributed in the hope that it will be useful,
11
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
- * GNU General Public License for more details.
14
- *
15
- * You should have received a copy of the GNU General Public License
16
- * along with this program. If not, see http://www.gnu.org/licenses/.
17
- *
18
- */
19
-
20
- import type {Asset} from '@wireapp/protocol-messaging';
21
-
22
- import type {AbortReason, AssetTransferState} from '../../conversation/';
23
- import type {FileContent, FileMetaDataContent, ImageContent, LegalHoldStatus} from '../../conversation/content/';
24
- import type {EncryptedAssetUploaded} from '../../cryptography/';
25
-
26
- export type ImageMetaData = Asset.IImageMetaData;
27
- export type VideoMetaData = Asset.IVideoMetaData;
28
- export type Preview = Asset.IPreview;
29
- export type Original = Asset.IOriginal;
30
-
31
- export interface AssetBase {
32
- expectsReadConfirmation?: boolean;
33
- legalHoldStatus?: LegalHoldStatus;
34
- }
35
-
36
- // https://github.com/wireapp/generic-message-proto/blob/v1.20.0/proto/messages.proto#L201
37
- export interface AssetContent extends AssetBase {
38
- abortReason?: AbortReason;
39
- original?: Original;
40
- preview?: Preview;
41
- status?: AssetTransferState;
42
- uploaded?: RemoteData;
43
- }
44
-
45
- export interface RemoteData extends Asset.IRemoteData {
46
- assetId: string;
47
- otrKey: Uint8Array | Buffer;
48
- sha256: Uint8Array | Buffer;
49
- }
50
-
51
- export interface AudioMetaData extends Omit<Asset.IAudioMetaData, 'normalizedLoudness'> {
52
- normalizedLoudness?: Uint8Array | Buffer | null;
53
- }
54
-
55
- export interface ImageAssetContent extends AssetBase {
56
- asset: EncryptedAssetUploaded;
57
- image: ImageContent;
58
- }
59
-
60
- export interface FileAssetContent extends AssetBase {
61
- asset: EncryptedAssetUploaded;
62
- file: FileContent;
63
- }
64
-
65
- export interface FileAssetMetaDataContent extends AssetBase {
66
- metaData: FileMetaDataContent;
67
- }
68
-
69
- export interface FileAssetAbortContent extends AssetBase {
70
- reason: AbortReason;
71
- }
@@ -1 +0,0 @@
1
- {"version":3,"file":"ButtonActionConfirmationContent.js","sourceRoot":"","sources":["ButtonActionConfirmationContent.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;GAiBG"}
@@ -1,21 +0,0 @@
1
- /*
2
- * Wire
3
- * Copyright (C) 2020 Wire Swiss GmbH
4
- *
5
- * This program is free software: you can redistribute it and/or modify
6
- * it under the terms of the GNU General Public License as published by
7
- * the Free Software Foundation, either version 3 of the License, or
8
- * (at your option) any later version.
9
- *
10
- * This program is distributed in the hope that it will be useful,
11
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
- * GNU General Public License for more details.
14
- *
15
- * You should have received a copy of the GNU General Public License
16
- * along with this program. If not, see http://www.gnu.org/licenses/.
17
- *
18
- */
19
-
20
- import type {IButtonActionConfirmation} from '@wireapp/protocol-messaging';
21
- export {IButtonActionConfirmation as ButtonActionConfirmationContent};
@@ -1 +0,0 @@
1
- {"version":3,"file":"ButtonActionContent.js","sourceRoot":"","sources":["ButtonActionContent.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;GAiBG"}
@@ -1,21 +0,0 @@
1
- /*
2
- * Wire
3
- * Copyright (C) 2020 Wire Swiss GmbH
4
- *
5
- * This program is free software: you can redistribute it and/or modify
6
- * it under the terms of the GNU General Public License as published by
7
- * the Free Software Foundation, either version 3 of the License, or
8
- * (at your option) any later version.
9
- *
10
- * This program is distributed in the hope that it will be useful,
11
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
- * GNU General Public License for more details.
14
- *
15
- * You should have received a copy of the GNU General Public License
16
- * along with this program. If not, see http://www.gnu.org/licenses/.
17
- *
18
- */
19
-
20
- import type {IButtonAction} from '@wireapp/protocol-messaging';
21
- export {IButtonAction as ButtonActionContent};
@@ -1 +0,0 @@
1
- {"version":3,"file":"CallingContent.js","sourceRoot":"","sources":["CallingContent.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;GAiBG"}
@@ -1,20 +0,0 @@
1
- /*
2
- * Wire
3
- * Copyright (C) 2019 Wire Swiss GmbH
4
- *
5
- * This program is free software: you can redistribute it and/or modify
6
- * it under the terms of the GNU General Public License as published by
7
- * the Free Software Foundation, either version 3 of the License, or
8
- * (at your option) any later version.
9
- *
10
- * This program is distributed in the hope that it will be useful,
11
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
- * GNU General Public License for more details.
14
- *
15
- * You should have received a copy of the GNU General Public License
16
- * along with this program. If not, see http://www.gnu.org/licenses/.
17
- *
18
- */
19
-
20
- export type CallingContent = string;
@@ -1 +0,0 @@
1
- {"version":3,"file":"ClearedContent.js","sourceRoot":"","sources":["ClearedContent.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;GAiBG"}
@@ -1,21 +0,0 @@
1
- /*
2
- * Wire
3
- * Copyright (C) 2018 Wire Swiss GmbH
4
- *
5
- * This program is free software: you can redistribute it and/or modify
6
- * it under the terms of the GNU General Public License as published by
7
- * the Free Software Foundation, either version 3 of the License, or
8
- * (at your option) any later version.
9
- *
10
- * This program is distributed in the hope that it will be useful,
11
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
- * GNU General Public License for more details.
14
- *
15
- * You should have received a copy of the GNU General Public License
16
- * along with this program. If not, see http://www.gnu.org/licenses/.
17
- *
18
- */
19
-
20
- import type {ICleared} from '@wireapp/protocol-messaging';
21
- export {ICleared as ClearedContent};
@@ -1 +0,0 @@
1
- {"version":3,"file":"ClientActionContent.js","sourceRoot":"","sources":["ClientActionContent.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;GAiBG"}
@@ -1,22 +0,0 @@
1
- /*
2
- * Wire
3
- * Copyright (C) 2018 Wire Swiss GmbH
4
- *
5
- * This program is free software: you can redistribute it and/or modify
6
- * it under the terms of the GNU General Public License as published by
7
- * the Free Software Foundation, either version 3 of the License, or
8
- * (at your option) any later version.
9
- *
10
- * This program is distributed in the hope that it will be useful,
11
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
- * GNU General Public License for more details.
14
- *
15
- * You should have received a copy of the GNU General Public License
16
- * along with this program. If not, see http://www.gnu.org/licenses/.
17
- *
18
- */
19
-
20
- import type {IGenericMessage} from '@wireapp/protocol-messaging';
21
-
22
- export type ClientActionContent = Required<Pick<IGenericMessage, 'clientAction'>>;
@@ -1 +0,0 @@
1
- {"version":3,"file":"ClientAddContent.js","sourceRoot":"","sources":["ClientAddContent.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;GAiBG"}
@@ -1,24 +0,0 @@
1
- /*
2
- * Wire
3
- * Copyright (C) 2019 Wire Swiss GmbH
4
- *
5
- * This program is free software: you can redistribute it and/or modify
6
- * it under the terms of the GNU General Public License as published by
7
- * the Free Software Foundation, either version 3 of the License, or
8
- * (at your option) any later version.
9
- *
10
- * This program is distributed in the hope that it will be useful,
11
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
- * GNU General Public License for more details.
14
- *
15
- * You should have received a copy of the GNU General Public License
16
- * along with this program. If not, see http://www.gnu.org/licenses/.
17
- *
18
- */
19
-
20
- import type {RegisteredClient} from '@wireapp/api-client/src/client/';
21
-
22
- export interface ClientAddContent {
23
- client: RegisteredClient;
24
- }
@@ -1 +0,0 @@
1
- {"version":3,"file":"ClientRemoveContent.js","sourceRoot":"","sources":["ClientRemoveContent.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;GAiBG"}
@@ -1,25 +0,0 @@
1
- /*
2
- * Wire
3
- * Copyright (C) 2019 Wire Swiss GmbH
4
- *
5
- * This program is free software: you can redistribute it and/or modify
6
- * it under the terms of the GNU General Public License as published by
7
- * the Free Software Foundation, either version 3 of the License, or
8
- * (at your option) any later version.
9
- *
10
- * This program is distributed in the hope that it will be useful,
11
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
- * GNU General Public License for more details.
14
- *
15
- * You should have received a copy of the GNU General Public License
16
- * along with this program. If not, see http://www.gnu.org/licenses/.
17
- *
18
- */
19
-
20
- export interface ClientRemoveContent {
21
- client: {
22
- /** The client ID */
23
- id: string;
24
- };
25
- }
@@ -1 +0,0 @@
1
- {"version":3,"file":"CompositeContent.js","sourceRoot":"","sources":["CompositeContent.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;GAiBG"}
@@ -1,21 +0,0 @@
1
- /*
2
- * Wire
3
- * Copyright (C) 2020 Wire Swiss GmbH
4
- *
5
- * This program is free software: you can redistribute it and/or modify
6
- * it under the terms of the GNU General Public License as published by
7
- * the Free Software Foundation, either version 3 of the License, or
8
- * (at your option) any later version.
9
- *
10
- * This program is distributed in the hope that it will be useful,
11
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
- * GNU General Public License for more details.
14
- *
15
- * You should have received a copy of the GNU General Public License
16
- * along with this program. If not, see http://www.gnu.org/licenses/.
17
- *
18
- */
19
-
20
- import type {IComposite} from '@wireapp/protocol-messaging';
21
- export {IComposite as CompositeContent};
@@ -1 +0,0 @@
1
- {"version":3,"file":"ConfirmationContent.js","sourceRoot":"","sources":["ConfirmationContent.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;GAiBG"}
@@ -1,21 +0,0 @@
1
- /*
2
- * Wire
3
- * Copyright (C) 2018 Wire Swiss GmbH
4
- *
5
- * This program is free software: you can redistribute it and/or modify
6
- * it under the terms of the GNU General Public License as published by
7
- * the Free Software Foundation, either version 3 of the License, or
8
- * (at your option) any later version.
9
- *
10
- * This program is distributed in the hope that it will be useful,
11
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
- * GNU General Public License for more details.
14
- *
15
- * You should have received a copy of the GNU General Public License
16
- * along with this program. If not, see http://www.gnu.org/licenses/.
17
- *
18
- */
19
-
20
- import type {IConfirmation} from '@wireapp/protocol-messaging';
21
- export {IConfirmation as ConfirmationContent};