Use MessageBodyBuilder instead of linkify
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
This commit is contained in:
parent
55f2d79d07
commit
fc3b391aa9
1 changed files with 4 additions and 3 deletions
|
@ -15,7 +15,7 @@ limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import {MessageTile} from "./MessageTile.js";
|
import {MessageTile} from "./MessageTile.js";
|
||||||
import { Linkifier } from "../Linkifier.js";
|
import { MessageBodyBuilder } from "../MessageBodyBuilder.js";
|
||||||
|
|
||||||
export class TextTile extends MessageTile {
|
export class TextTile extends MessageTile {
|
||||||
get messageFormat() {
|
get messageFormat() {
|
||||||
|
@ -24,7 +24,8 @@ export class TextTile extends MessageTile {
|
||||||
if (content.msgtype === "m.emote") {
|
if (content.msgtype === "m.emote") {
|
||||||
body = `* ${this.displayName} ${body}`;
|
body = `* ${this.displayName} ${body}`;
|
||||||
}
|
}
|
||||||
const obj = new Linkifier(body);
|
const message = new MessageBodyBuilder();
|
||||||
return obj.linkify();
|
message.fromText(body);
|
||||||
|
return message;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue