Skip to content

joinMuc history maxstanzas: 0 ignored #16

@juliendangers

Description

@juliendangers

Hello,

I'm facing an issue with joinMuc history field. In a specific case I explicitly need to ask for 0 maxstanzas, but the following condition https://github.com/otalk/jxt-xmpp/blob/master/src/muc.js#L221 will ignore 0.

Could we add a check on option's type instead ? Or how would you solve this ? I'd be happy to create a PR ;)

(I'm sending "0" to bypass the condition, but I don't think it's a good solution)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions