add audio duration
This commit is contained in:
parent
e58ba1e9c8
commit
8716a8ce45
|
@ -24,6 +24,8 @@ type QuotedMessage struct {
|
||||||
Base64Image string `json:"image,omitempty"`
|
Base64Image string `json:"image,omitempty"`
|
||||||
// Base64Audio is the converted base64 audio
|
// Base64Audio is the converted base64 audio
|
||||||
Base64Audio string `json:"audio,omitempty"`
|
Base64Audio string `json:"audio,omitempty"`
|
||||||
|
// AudioDurationMs is the audio duration in milliseconds
|
||||||
|
AudioDurationMs uint64 `json:"audioDuration,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type CommandState int
|
type CommandState int
|
||||||
|
@ -141,6 +143,7 @@ func (m *Message) MarshalJSON() ([]byte, error) {
|
||||||
EnsName string `json:"ensName"`
|
EnsName string `json:"ensName"`
|
||||||
Image string `json:"image,omitempty"`
|
Image string `json:"image,omitempty"`
|
||||||
Audio string `json:"audio,omitempty"`
|
Audio string `json:"audio,omitempty"`
|
||||||
|
AudioDurationMs uint64 `json:"audioDurationMs,omitempty"`
|
||||||
Sticker *StickerAlias `json:"sticker"`
|
Sticker *StickerAlias `json:"sticker"`
|
||||||
CommandParameters *CommandParameters `json:"commandParameters"`
|
CommandParameters *CommandParameters `json:"commandParameters"`
|
||||||
Timestamp uint64 `json:"timestamp"`
|
Timestamp uint64 `json:"timestamp"`
|
||||||
|
@ -179,6 +182,11 @@ func (m *Message) MarshalJSON() ([]byte, error) {
|
||||||
Hash: sticker.Hash,
|
Hash: sticker.Hash,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if audio := m.GetAudio(); audio != nil {
|
||||||
|
item.AudioDurationMs = audio.DurationMs
|
||||||
|
}
|
||||||
|
|
||||||
return json.Marshal(item)
|
return json.Marshal(item)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -190,6 +198,7 @@ func (m *Message) UnmarshalJSON(data []byte) error {
|
||||||
EnsName string `json:"ensName"`
|
EnsName string `json:"ensName"`
|
||||||
ChatID string `json:"chatId"`
|
ChatID string `json:"chatId"`
|
||||||
Sticker *protobuf.StickerMessage `json:"sticker"`
|
Sticker *protobuf.StickerMessage `json:"sticker"`
|
||||||
|
AudioDurationMs uint64 `json:"audioDurationMs"`
|
||||||
ContentType protobuf.ChatMessage_ContentType `json:"contentType"`
|
ContentType protobuf.ChatMessage_ContentType `json:"contentType"`
|
||||||
}{
|
}{
|
||||||
Alias: (*Alias)(m),
|
Alias: (*Alias)(m),
|
||||||
|
@ -200,6 +209,11 @@ func (m *Message) UnmarshalJSON(data []byte) error {
|
||||||
if aux.ContentType == protobuf.ChatMessage_STICKER {
|
if aux.ContentType == protobuf.ChatMessage_STICKER {
|
||||||
m.Payload = &protobuf.ChatMessage_Sticker{Sticker: aux.Sticker}
|
m.Payload = &protobuf.ChatMessage_Sticker{Sticker: aux.Sticker}
|
||||||
}
|
}
|
||||||
|
if aux.ContentType == protobuf.ChatMessage_AUDIO {
|
||||||
|
m.Payload = &protobuf.ChatMessage_Audio{
|
||||||
|
Audio: &protobuf.AudioMessage{DurationMs: aux.AudioDurationMs},
|
||||||
|
}
|
||||||
|
}
|
||||||
m.ResponseTo = aux.ResponseTo
|
m.ResponseTo = aux.ResponseTo
|
||||||
m.EnsName = aux.EnsName
|
m.EnsName = aux.EnsName
|
||||||
m.ChatId = aux.ChatID
|
m.ChatId = aux.ChatID
|
||||||
|
|
|
@ -38,6 +38,7 @@ func (db sqlitePersistence) tableUserMessagesAllFields() string {
|
||||||
image_base64,
|
image_base64,
|
||||||
audio_payload,
|
audio_payload,
|
||||||
audio_type,
|
audio_type,
|
||||||
|
audio_duration_ms,
|
||||||
audio_base64,
|
audio_base64,
|
||||||
command_id,
|
command_id,
|
||||||
command_value,
|
command_value,
|
||||||
|
@ -71,6 +72,7 @@ func (db sqlitePersistence) tableUserMessagesAllFieldsJoin() string {
|
||||||
m1.sticker_pack,
|
m1.sticker_pack,
|
||||||
m1.sticker_hash,
|
m1.sticker_hash,
|
||||||
m1.image_base64,
|
m1.image_base64,
|
||||||
|
m1.audio_duration_ms,
|
||||||
m1.audio_base64,
|
m1.audio_base64,
|
||||||
m1.command_id,
|
m1.command_id,
|
||||||
m1.command_value,
|
m1.command_value,
|
||||||
|
@ -87,6 +89,7 @@ func (db sqlitePersistence) tableUserMessagesAllFieldsJoin() string {
|
||||||
m2.source,
|
m2.source,
|
||||||
m2.text,
|
m2.text,
|
||||||
m2.image_base64,
|
m2.image_base64,
|
||||||
|
m2.audio_duration_ms,
|
||||||
m2.audio_base64,
|
m2.audio_base64,
|
||||||
c.alias,
|
c.alias,
|
||||||
c.identicon`
|
c.identicon`
|
||||||
|
@ -105,11 +108,13 @@ func (db sqlitePersistence) tableUserMessagesScanAllFields(row scanner, message
|
||||||
var quotedFrom sql.NullString
|
var quotedFrom sql.NullString
|
||||||
var quotedImage sql.NullString
|
var quotedImage sql.NullString
|
||||||
var quotedAudio sql.NullString
|
var quotedAudio sql.NullString
|
||||||
|
var quotedAudioDuration sql.NullInt64
|
||||||
var alias sql.NullString
|
var alias sql.NullString
|
||||||
var identicon sql.NullString
|
var identicon sql.NullString
|
||||||
|
|
||||||
sticker := &protobuf.StickerMessage{}
|
sticker := &protobuf.StickerMessage{}
|
||||||
command := &CommandParameters{}
|
command := &CommandParameters{}
|
||||||
|
audio := &protobuf.AudioMessage{}
|
||||||
|
|
||||||
args := []interface{}{
|
args := []interface{}{
|
||||||
&message.ID,
|
&message.ID,
|
||||||
|
@ -129,6 +134,7 @@ func (db sqlitePersistence) tableUserMessagesScanAllFields(row scanner, message
|
||||||
&sticker.Pack,
|
&sticker.Pack,
|
||||||
&sticker.Hash,
|
&sticker.Hash,
|
||||||
&message.Base64Image,
|
&message.Base64Image,
|
||||||
|
&audio.DurationMs,
|
||||||
&message.Base64Audio,
|
&message.Base64Audio,
|
||||||
&command.ID,
|
&command.ID,
|
||||||
&command.Value,
|
&command.Value,
|
||||||
|
@ -145,6 +151,7 @@ func (db sqlitePersistence) tableUserMessagesScanAllFields(row scanner, message
|
||||||
"edFrom,
|
"edFrom,
|
||||||
"edText,
|
"edText,
|
||||||
"edImage,
|
"edImage,
|
||||||
|
"edAudioDuration,
|
||||||
"edAudio,
|
"edAudio,
|
||||||
&alias,
|
&alias,
|
||||||
&identicon,
|
&identicon,
|
||||||
|
@ -159,6 +166,7 @@ func (db sqlitePersistence) tableUserMessagesScanAllFields(row scanner, message
|
||||||
From: quotedFrom.String,
|
From: quotedFrom.String,
|
||||||
Text: quotedText.String,
|
Text: quotedText.String,
|
||||||
Base64Image: quotedImage.String,
|
Base64Image: quotedImage.String,
|
||||||
|
AudioDurationMs: uint64(quotedAudioDuration.Int64),
|
||||||
Base64Audio: quotedAudio.String,
|
Base64Audio: quotedAudio.String,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -168,6 +176,10 @@ func (db sqlitePersistence) tableUserMessagesScanAllFields(row scanner, message
|
||||||
message.Payload = &protobuf.ChatMessage_Sticker{Sticker: sticker}
|
message.Payload = &protobuf.ChatMessage_Sticker{Sticker: sticker}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if message.ContentType == protobuf.ChatMessage_AUDIO {
|
||||||
|
message.Payload = &protobuf.ChatMessage_Audio{Audio: audio}
|
||||||
|
}
|
||||||
|
|
||||||
if message.ContentType == protobuf.ChatMessage_TRANSACTION_COMMAND {
|
if message.ContentType == protobuf.ChatMessage_TRANSACTION_COMMAND {
|
||||||
message.CommandParameters = command
|
message.CommandParameters = command
|
||||||
}
|
}
|
||||||
|
@ -217,6 +229,7 @@ func (db sqlitePersistence) tableUserMessagesAllValues(message *Message) ([]inte
|
||||||
message.Base64Image,
|
message.Base64Image,
|
||||||
audio.Payload,
|
audio.Payload,
|
||||||
audio.Type,
|
audio.Type,
|
||||||
|
audio.DurationMs,
|
||||||
message.Base64Audio,
|
message.Base64Audio,
|
||||||
command.ID,
|
command.ID,
|
||||||
command.Value,
|
command.Value,
|
||||||
|
|
|
@ -1396,11 +1396,13 @@ func (m *Messenger) SendChatMessage(ctx context.Context, message *Message) (*Mes
|
||||||
return nil, err
|
return nil, err
|
||||||
|
|
||||||
}
|
}
|
||||||
audio := protobuf.AudioMessage{
|
audioMessage := message.GetAudio()
|
||||||
Payload: payload,
|
if audioMessage == nil {
|
||||||
Type: audio.Type(payload),
|
return nil, errors.New("no audio has been passed")
|
||||||
}
|
}
|
||||||
message.Payload = &protobuf.ChatMessage_Audio{Audio: &audio}
|
audioMessage.Payload = payload
|
||||||
|
audioMessage.Type = audio.Type(payload)
|
||||||
|
message.Payload = &protobuf.ChatMessage_Audio{Audio: audioMessage}
|
||||||
}
|
}
|
||||||
|
|
||||||
logger := m.logger.With(zap.String("site", "Send"), zap.String("chatID", message.ChatId))
|
logger := m.logger.With(zap.String("site", "Send"), zap.String("chatID", message.ChatId))
|
||||||
|
|
|
@ -15,7 +15,7 @@
|
||||||
// 1593087212_add_mute_chat_and_raw_message_fields.down.sql (0)
|
// 1593087212_add_mute_chat_and_raw_message_fields.down.sql (0)
|
||||||
// 1593087212_add_mute_chat_and_raw_message_fields.up.sql (215B)
|
// 1593087212_add_mute_chat_and_raw_message_fields.up.sql (215B)
|
||||||
// 1595862781_add_audio_data.down.sql (0)
|
// 1595862781_add_audio_data.down.sql (0)
|
||||||
// 1595862781_add_audio_data.up.sql (186B)
|
// 1595862781_add_audio_data.up.sql (246B)
|
||||||
// doc.go (850B)
|
// doc.go (850B)
|
||||||
|
|
||||||
package migrations
|
package migrations
|
||||||
|
@ -385,7 +385,7 @@ func _1595862781_add_audio_dataDownSql() (*asset, error) {
|
||||||
return a, nil
|
return a, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
var __1595862781_add_audio_dataUpSql = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\x94\xcb\x41\x0a\xc2\x40\x0c\x05\xd0\x7d\x4f\xf1\xe9\x19\xc4\x4d\x57\x33\x4e\x04\x21\x66\x40\x32\xe0\xae\x44\x1a\x44\x50\x5a\x8c\x5d\xf4\xf6\x9e\xa1\x07\x78\x89\x95\x6e\xd0\x94\x99\xb0\x86\x7f\xc7\x8f\x47\xd8\xd3\x03\xa9\x14\x9c\x2a\xb7\xab\xc0\xd6\xe9\x35\x8f\x8b\x6d\xef\xd9\x26\x64\xae\x79\xe8\x76\xc0\xdf\xb6\x38\x2e\xa2\xbb\xd0\xc3\xc2\x8f\x07\x28\xdd\x15\x52\x15\xd2\x98\x51\xe8\x9c\x1a\x2b\xfa\x7e\xe8\xfe\x01\x00\x00\xff\xff\x87\xd0\x8b\xbb\xba\x00\x00\x00")
|
var __1595862781_add_audio_dataUpSql = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\x94\xcb\x41\xaa\xc3\x20\x10\x06\xe0\x7d\x4e\xf1\x93\x33\x3c\xde\x26\x2b\x53\x2d\x14\xa6\x0a\x65\x84\xee\x64\x8a\x52\x02\x4d\x0d\x99\xb8\xc8\xed\x7b\x06\x0f\xf0\x19\x62\xf7\x00\x9b\x99\x1c\x9a\x96\x3d\xad\x45\x55\xde\x45\x61\xac\xc5\x25\x50\xbc\x7b\x48\xcb\x4b\x4d\x9b\x9c\x9f\x2a\x19\x33\x85\x79\x1a\x3a\xe0\x71\x6e\x05\x37\xcf\x5d\x28\xb7\x5d\x8e\xa5\x7e\xd3\xaa\xdd\xf6\x25\x5a\xfe\xff\xc0\xee\xc9\xf0\x81\xe1\x23\x11\xac\xbb\x9a\x48\x8c\x71\x9c\x86\x5f\x00\x00\x00\xff\xff\xeb\x6f\xa0\x62\xf6\x00\x00\x00")
|
||||||
|
|
||||||
func _1595862781_add_audio_dataUpSqlBytes() ([]byte, error) {
|
func _1595862781_add_audio_dataUpSqlBytes() ([]byte, error) {
|
||||||
return bindataRead(
|
return bindataRead(
|
||||||
|
@ -400,8 +400,8 @@ func _1595862781_add_audio_dataUpSql() (*asset, error) {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
info := bindataFileInfo{name: "1595862781_add_audio_data.up.sql", size: 186, mode: os.FileMode(0644), modTime: time.Unix(1595862768, 0)}
|
info := bindataFileInfo{name: "1595862781_add_audio_data.up.sql", size: 246, mode: os.FileMode(0644), modTime: time.Unix(1595862893, 0)}
|
||||||
a := &asset{bytes: bytes, info: info, digest: [32]uint8{0x49, 0xf0, 0xf7, 0x5d, 0x8e, 0xc4, 0xd5, 0xb1, 0xb0, 0xa, 0x7c, 0xbd, 0x26, 0x22, 0xfe, 0xc0, 0xf0, 0xb0, 0x4e, 0x97, 0x2f, 0xcf, 0x8c, 0x24, 0x88, 0xdc, 0x6e, 0xab, 0x41, 0x99, 0xce, 0x36}}
|
a := &asset{bytes: bytes, info: info, digest: [32]uint8{0xae, 0xd2, 0xee, 0x55, 0xfb, 0x36, 0xa4, 0x92, 0x66, 0xe, 0x81, 0x62, 0x1e, 0x7a, 0x69, 0xa, 0xd5, 0x4b, 0xa5, 0x6a, 0x8d, 0x1d, 0xce, 0xf3, 0x3e, 0xc0, 0x5f, 0x9c, 0x66, 0x1b, 0xb4, 0xed}}
|
||||||
return a, nil
|
return a, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
ALTER TABLE user_messages ADD COLUMN audio_payload BLOB;
|
ALTER TABLE user_messages ADD COLUMN audio_payload BLOB;
|
||||||
ALTER TABLE user_messages ADD COLUMN audio_type INT;
|
ALTER TABLE user_messages ADD COLUMN audio_type INT;
|
||||||
|
ALTER TABLE user_messages ADD COLUMN audio_duration_ms INT;
|
||||||
ALTER TABLE user_messages ADD COLUMN audio_base64 TEXT NOT NULL DEFAULT "";
|
ALTER TABLE user_messages ADD COLUMN audio_base64 TEXT NOT NULL DEFAULT "";
|
||||||
|
|
|
@ -261,6 +261,7 @@ func (m *ImageMessage) GetType() ImageMessage_ImageType {
|
||||||
type AudioMessage struct {
|
type AudioMessage struct {
|
||||||
Payload []byte `protobuf:"bytes,1,opt,name=payload,proto3" json:"payload,omitempty"`
|
Payload []byte `protobuf:"bytes,1,opt,name=payload,proto3" json:"payload,omitempty"`
|
||||||
Type AudioMessage_AudioType `protobuf:"varint,2,opt,name=type,proto3,enum=protobuf.AudioMessage_AudioType" json:"type,omitempty"`
|
Type AudioMessage_AudioType `protobuf:"varint,2,opt,name=type,proto3,enum=protobuf.AudioMessage_AudioType" json:"type,omitempty"`
|
||||||
|
DurationMs uint64 `protobuf:"varint,3,opt,name=duration_ms,json=durationMs,proto3" json:"duration_ms,omitempty"`
|
||||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||||
XXX_unrecognized []byte `json:"-"`
|
XXX_unrecognized []byte `json:"-"`
|
||||||
XXX_sizecache int32 `json:"-"`
|
XXX_sizecache int32 `json:"-"`
|
||||||
|
@ -305,6 +306,13 @@ func (m *AudioMessage) GetType() AudioMessage_AudioType {
|
||||||
return AudioMessage_UNKNOWN_AUDIO_TYPE
|
return AudioMessage_UNKNOWN_AUDIO_TYPE
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (m *AudioMessage) GetDurationMs() uint64 {
|
||||||
|
if m != nil {
|
||||||
|
return m.DurationMs
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
type ChatMessage struct {
|
type ChatMessage struct {
|
||||||
// Lamport timestamp of the chat message
|
// Lamport timestamp of the chat message
|
||||||
Clock uint64 `protobuf:"varint,1,opt,name=clock,proto3" json:"clock,omitempty"`
|
Clock uint64 `protobuf:"varint,1,opt,name=clock,proto3" json:"clock,omitempty"`
|
||||||
|
@ -490,45 +498,46 @@ func init() {
|
||||||
func init() { proto.RegisterFile("chat_message.proto", fileDescriptor_263952f55fd35689) }
|
func init() { proto.RegisterFile("chat_message.proto", fileDescriptor_263952f55fd35689) }
|
||||||
|
|
||||||
var fileDescriptor_263952f55fd35689 = []byte{
|
var fileDescriptor_263952f55fd35689 = []byte{
|
||||||
// 631 bytes of a gzipped FileDescriptorProto
|
// 652 bytes of a gzipped FileDescriptorProto
|
||||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x53, 0xcb, 0x4e, 0xdb, 0x40,
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x53, 0x4d, 0x6f, 0xd3, 0x40,
|
||||||
0x14, 0xc5, 0x89, 0x13, 0xc7, 0xd7, 0x29, 0x9a, 0x4e, 0x11, 0xb8, 0x12, 0x52, 0x53, 0xab, 0x8b,
|
0x10, 0xad, 0x13, 0x27, 0x8e, 0xc7, 0xa1, 0x5a, 0x96, 0xaa, 0x35, 0x52, 0x25, 0x82, 0xc5, 0x21,
|
||||||
0xac, 0xb2, 0xa0, 0x54, 0xea, 0xd6, 0x98, 0x69, 0x30, 0xe0, 0x87, 0xc6, 0x93, 0x52, 0x56, 0x96,
|
0xa7, 0x1c, 0x4a, 0x91, 0xb8, 0xba, 0xae, 0x49, 0xdd, 0xd6, 0x1f, 0x5a, 0x6f, 0x28, 0x3d, 0x59,
|
||||||
0x71, 0xa6, 0x24, 0x02, 0xc7, 0x16, 0x36, 0x52, 0xd9, 0xf4, 0x13, 0xba, 0xeb, 0x47, 0x74, 0xdf,
|
0xae, 0xb3, 0x34, 0x51, 0xeb, 0x0f, 0xc5, 0xae, 0x44, 0x2f, 0xfc, 0x04, 0xfe, 0x07, 0x77, 0xc4,
|
||||||
0x0f, 0xac, 0x66, 0x8c, 0x13, 0x83, 0xaa, 0x6e, 0xba, 0xf2, 0x7d, 0x9c, 0x7b, 0x7c, 0xe6, 0xce,
|
0xef, 0x43, 0xbb, 0xae, 0x13, 0xa7, 0x42, 0x5c, 0x38, 0x79, 0x66, 0xf6, 0xcd, 0xf3, 0x9b, 0xd9,
|
||||||
0x19, 0xc0, 0xe9, 0x22, 0xa9, 0xe2, 0x8c, 0x97, 0x65, 0x72, 0xcd, 0x27, 0xc5, 0x5d, 0x5e, 0xe5,
|
0xb7, 0x80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x09, 0x6b, 0xfe, 0xb6, 0x2d, 0xb0, 0xcf, 0xd9, 0xc4, 0xf3, 0x46, 0x0a,
|
||||||
0xd3, 0x79, 0xbb, 0xb5, 0x04, 0x00, 0x00,
|
0x0f, 0xc5, 0xe3, 0x40, 0x83, 0x13, 0x75, 0xfd, 0x5a, 0x6f, 0xfa, 0x62, 0xc3, 0xef, 0xff, 0x04,
|
||||||
|
0x00, 0x00, 0xff, 0xff, 0x5b, 0xc2, 0xb0, 0xfc, 0xd6, 0x04, 0x00, 0x00,
|
||||||
}
|
}
|
||||||
|
|
|
@ -22,6 +22,7 @@ message ImageMessage {
|
||||||
message AudioMessage {
|
message AudioMessage {
|
||||||
bytes payload = 1;
|
bytes payload = 1;
|
||||||
AudioType type = 2;
|
AudioType type = 2;
|
||||||
|
uint64 duration_ms = 3;
|
||||||
enum AudioType {
|
enum AudioType {
|
||||||
UNKNOWN_AUDIO_TYPE = 0;
|
UNKNOWN_AUDIO_TYPE = 0;
|
||||||
AAC = 1;
|
AAC = 1;
|
||||||
|
|
Loading…
Reference in New Issue