Improve types for sendEvent
(#12335)
This commit is contained in:
parent
4941327c78
commit
ef2bd7ae04
26 changed files with 209 additions and 99 deletions
|
@ -14,7 +14,8 @@ See the License for the specific language governing permissions and
|
|||
limitations under the License.
|
||||
*/
|
||||
|
||||
import { IContent, IEncryptedFile, MsgType } from "matrix-js-sdk/src/matrix";
|
||||
import { IEncryptedFile, MsgType } from "matrix-js-sdk/src/matrix";
|
||||
import { RoomMessageEventContent } from "matrix-js-sdk/src/types";
|
||||
|
||||
/**
|
||||
* @param {string} mxc MXC URL of the file
|
||||
|
@ -31,7 +32,7 @@ export const createVoiceMessageContent = (
|
|||
size: number,
|
||||
file?: IEncryptedFile,
|
||||
waveform?: number[],
|
||||
): IContent => {
|
||||
): RoomMessageEventContent => {
|
||||
return {
|
||||
"body": "Voice message",
|
||||
//"msgtype": "org.matrix.msc2516.voice",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue