BREAKING: update mautrix to 0.15.x
This commit is contained in:
6
vendor/maunium.net/go/mautrix/crypto/olm/inboundgroupsession.go
generated
vendored
6
vendor/maunium.net/go/mautrix/crypto/olm/inboundgroupsession.go
generated
vendored
@@ -288,7 +288,7 @@ func (s *InboundGroupSession) exportLen() uint {
|
||||
// if we do not have a session key corresponding to the given index (ie, it was
|
||||
// sent before the session key was shared with us) the error will be
|
||||
// "OLM_UNKNOWN_MESSAGE_INDEX".
|
||||
func (s *InboundGroupSession) Export(messageIndex uint32) (string, error) {
|
||||
func (s *InboundGroupSession) Export(messageIndex uint32) ([]byte, error) {
|
||||
key := make([]byte, s.exportLen())
|
||||
r := C.olm_export_inbound_group_session(
|
||||
(*C.OlmInboundGroupSession)(s.int),
|
||||
@@ -296,7 +296,7 @@ func (s *InboundGroupSession) Export(messageIndex uint32) (string, error) {
|
||||
C.size_t(len(key)),
|
||||
C.uint32_t(messageIndex))
|
||||
if r == errorVal() {
|
||||
return "", s.lastError()
|
||||
return nil, s.lastError()
|
||||
}
|
||||
return string(key[:r]), nil
|
||||
return key[:r], nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user