Stop using deprecated methods, fields & exports (#12524)
* Remove legacy `threepidCreds` field Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Remove `user` field legacy UIA fallback Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Update imports Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Fix test Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> --------- Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
parent
bec8fdb3d3
commit
113c365563
12 changed files with 13 additions and 45 deletions
|
@ -14,8 +14,8 @@ See the License for the specific language governing permissions and
|
|||
limitations under the License.
|
||||
*/
|
||||
|
||||
import { IEncryptedFile, MsgType } from "matrix-js-sdk/src/matrix";
|
||||
import { RoomMessageEventContent } from "matrix-js-sdk/src/types";
|
||||
import { MsgType } from "matrix-js-sdk/src/matrix";
|
||||
import { EncryptedFile, RoomMessageEventContent } from "matrix-js-sdk/src/types";
|
||||
|
||||
/**
|
||||
* @param {string} mxc MXC URL of the file
|
||||
|
@ -23,14 +23,14 @@ import { RoomMessageEventContent } from "matrix-js-sdk/src/types";
|
|||
* @param {number} duration Duration in milliseconds
|
||||
* @param {number} size
|
||||
* @param {number[]} [waveform]
|
||||
* @param {IEncryptedFile} [file] Encrypted file
|
||||
* @param {EncryptedFile} [file] Encrypted file
|
||||
*/
|
||||
export const createVoiceMessageContent = (
|
||||
mxc: string | undefined,
|
||||
mimetype: string,
|
||||
duration: number,
|
||||
size: number,
|
||||
file?: IEncryptedFile,
|
||||
file?: EncryptedFile,
|
||||
waveform?: number[],
|
||||
): RoomMessageEventContent => {
|
||||
return {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue