File tree Expand file tree Collapse file tree 1 file changed +1
-5
lines changed
extensions/warp-ipfs/src/store Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -219,7 +219,7 @@ impl<M: Serialize + DeserializeOwned + Clone> PayloadMessage<M> {
219
219
co_signature : None ,
220
220
} ;
221
221
222
- if !recipients. is_empty ( ) {
222
+ if !recipients. is_empty ( ) || key . is_some ( ) {
223
223
let keypair = cosigner. unwrap_or ( keypair) ;
224
224
let new_key = generate :: < 64 > ( ) ;
225
225
@@ -244,10 +244,6 @@ impl<M: Serialize + DeserializeOwned + Clone> PayloadMessage<M> {
244
244
new_map. insert ( recipient, key_set) ;
245
245
}
246
246
247
- if new_map. is_empty ( ) {
248
- return Err ( Error :: EmptyMessage ) ; // TODO: error for arb message being empty
249
- }
250
-
251
247
let sender = payload. sender ( ) ;
252
248
253
249
// Although we could decrypt any of the keys above, we will have an entry for the sender
You can’t perform that action at this time.
0 commit comments