Add unit tests for ChannelMessage replies and update untranslated.json with new translations
This commit is contained in:
1 parent
c1680208d8
commit
0e8a8bd8c4
61 files changed
+9701
-1140
No files matched your search
@@ -540,8 +540,12 @@ Uint8List buildSendTextMsgFrame(
|
||||
|
||||
// Build CMD_SEND_CHANNEL_TXT_MSG frame
|
||||
// Format: [cmd][txt_type][channel_idx][timestamp x4][text...]
|
||||
Uint8List buildSendChannelTextMsgFrame(int channelIndex, String text) {
|
||||
final timestamp = DateTime.now().millisecondsSinceEpoch ~/ 1000;
|
||||
Uint8List buildSendChannelTextMsgFrame(
|
||||
int channelIndex,
|
||||
String text, {
|
||||
int? timestamp,
|
||||
}) {
|
||||
timestamp ??= DateTime.now().millisecondsSinceEpoch ~/ 1000;
|
||||
final writer = BufferWriter();
|
||||
writer.writeByte(cmdSendChannelTxtMsg);
|
||||
writer.writeByte(txtTypePlain);
|
||||
|
||||
Reference in new issue
Block a user