ssbc / ssb-ooo

retrive ssb messages Out Of Order
MIT License
14 stars 4 forks source link

Fix ooo.get({ id, meta: true }) #10

Closed christianbundy closed 4 years ago

christianbundy commented 4 years ago

Previously this function wasn't checking the meta property, which ssb-db uses to determine whether it should output data or data.value without the key property. This was causing very strange behavior in clients that depend on get() because this module hooks into ssb-db's get() method, so it's important that ssb-ooo provides the same behavior.

This has haunted me for months.

Resolves #9

arj03 commented 4 years ago

Looks good 👍

christianbundy commented 4 years ago

Thanks @arj03!