Skip to content
This repository was archived by the owner on Aug 14, 2019. It is now read-only.
This repository was archived by the owner on Aug 14, 2019. It is now read-only.

better documentation for sender property, change to senderId, add senderDisplayName  #389

@jessesquires

Description

@jessesquires

see #328

I don't see it documented that sender has to be unique. What it says is "The name of the user who sent the message" which leads you to think it really is just the user's name, which doesn't necessarily imply uniqueness. Coupled with the text property of JSMessageData, I think most people are going to assume that sender is intended for display purposes.

The same applies to the sender property on JSQMessagesViewController. It is documented as "The name of the user sending messages". It's supposed to be a unique string as well, right?

And the demo uses display names for sender, which again doesn't imply uniqueness.

I'd suggest better documentation or rename sender to senderID.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions