const group handle length
continuous-integration/drone/pr Build is passing
Details
continuous-integration/drone/pr Build is passing
Details
This commit is contained in:
parent
1c460b431e
commit
0c9da27363
|
@ -19,6 +19,9 @@ const InviteGroupOverlay = 101;
|
||||||
// it will likely be prudent to define a proper Contact wrapper.
|
// it will likely be prudent to define a proper Contact wrapper.
|
||||||
const TorV3ContactHandleLength = 56;
|
const TorV3ContactHandleLength = 56;
|
||||||
|
|
||||||
|
// Defines the length of a Cwtch v2 Group.
|
||||||
|
const GroupConversationHandleLength = 32;
|
||||||
|
|
||||||
abstract class Message {
|
abstract class Message {
|
||||||
MessageMetadata getMetadata();
|
MessageMetadata getMetadata();
|
||||||
Widget getWidget(BuildContext context);
|
Widget getWidget(BuildContext context);
|
||||||
|
@ -55,7 +58,7 @@ Future<Message> messageHandler(BuildContext context, String profileOnion, String
|
||||||
var error = messageWrapper['Error'] != null;
|
var error = messageWrapper['Error'] != null;
|
||||||
String? signature;
|
String? signature;
|
||||||
// If this is a group, store the signature
|
// If this is a group, store the signature
|
||||||
if (contactHandle.length == 32) {
|
if (contactHandle.length == GroupConversationHandleLength) {
|
||||||
signature = messageWrapper['Signature'];
|
signature = messageWrapper['Signature'];
|
||||||
}
|
}
|
||||||
var metadata = MessageMetadata(profileOnion, contactHandle, index, timestamp, senderHandle, senderImage, signature, flags, ackd, error);
|
var metadata = MessageMetadata(profileOnion, contactHandle, index, timestamp, senderHandle, senderImage, signature, flags, ackd, error);
|
||||||
|
|
Loading…
Reference in New Issue