xmtp / libxmtp

LibXMTP is a shared library encapsulating the core functionality of the XMTP messaging protocol, such as cryptography, networking, and language bindings.
MIT License
47 stars 20 forks source link

Filter initial membership change message in dm groups from SDK #1266

Closed cameronvoell closed 1 week ago

cameronvoell commented 1 week ago

Closes https://github.com/xmtp/libxmtp/issues/1228

DM groups only ever have one membership change message, and it happens on DM creation, and if it fails DM is not created. You can not leave or add new ids to a DM group. Therefore it should be safe to just filter membership change messages from find_messages "queries" in DM groups in order to clear out the noisy user added message at the beginning of all DM groups.