react-native-matrix-sdk
Advanced tools
Comparing version
{ | ||
"name": "react-native-matrix-sdk", | ||
"title": "React Native Matrix Sdk", | ||
"version": "1.0.0-alpha72", | ||
"version": "1.0.0-alpha73", | ||
"description": "React Native SDK for Matrix.org", | ||
@@ -6,0 +6,0 @@ "main": "index.js", |
@@ -35,2 +35,7 @@ declare interface MXCredentials { | ||
content: ContentType; | ||
/** | ||
* The message's transaction id. Will only be set for messages send on the user's device. | ||
* See https://matrix.org/docs/spec/client_server/latest#id413 | ||
*/ | ||
txnId?: string; | ||
} | ||
@@ -75,3 +80,3 @@ | ||
declare module 'react-native-matrix-sdk' { | ||
import {EventSubscriptionVendor} from "react-native"; | ||
import { EventSubscriptionVendor } from "react-native"; | ||
@@ -199,4 +204,5 @@ export interface MatrixSDKStatic extends EventSubscriptionVendor { | ||
* @param data | ||
* @param txnId transaction id | ||
*/ | ||
sendMessageToRoom(roomId: string, messageType: string, data: any): Promise<SuccessResponse>; | ||
sendMessageToRoom(roomId: string, messageType: string, data: any, txnId?: string): Promise<SuccessResponse>; | ||
@@ -208,4 +214,5 @@ /** | ||
* @param data | ||
* @param txnId transaction id | ||
*/ | ||
sendEventToRoom(roomId: string, eventType: string, data: any): Promise<SuccessResponse>; | ||
sendEventToRoom(roomId: string, eventType: string, data: any, txnId?: string): Promise<SuccessResponse>; | ||
@@ -212,0 +219,0 @@ sendReadReceipt(roomId: string, eventId: string): Promise<SuccessResponse>; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
758873
0.08%1535
0.66%