addRoomMention method
- bool mention
whether to mention the entire room
Implementation
MsgDraft addRoomMention(
bool mention,
) {
final tmp1 = mention;
var tmp0 = 0;
var tmp2 = 0;
tmp0 = _box.borrow();
tmp2 = tmp1 ? 1 : 0;
final tmp3 = _api._msgDraftAddRoomMention(
tmp0,
tmp2,
);
final tmp5 = tmp3.arg0;
final tmp6 = tmp3.arg1;
final tmp7 = tmp3.arg2;
final tmp8 = tmp3.arg3;
final tmp9 = tmp3.arg4;
if (tmp5 == 0) {
debugAllocation("handle error", tmp6, tmp7);
final ffi.Pointer<ffi.Uint8> tmp6_0 = ffi.Pointer.fromAddress(tmp6);
final tmp5_0 =
utf8.decode(tmp6_0.asTypedList(tmp7), allowMalformed: true);
if (tmp7 > 0) {
final ffi.Pointer<ffi.Void> tmp6_0;
tmp6_0 = ffi.Pointer.fromAddress(tmp6);
_api.__deallocate(tmp6_0, tmp8, 1);
}
throw tmp5_0;
}
final ffi.Pointer<ffi.Void> tmp9_0 = ffi.Pointer.fromAddress(tmp9);
final tmp9_1 = _Box(_api, tmp9_0, "drop_box_MsgDraft");
tmp9_1._finalizer = _api._registerFinalizer(tmp9_1);
final tmp4 = MsgDraft._(_api, tmp9_1);
return tmp4;
}