-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
better documentation for sender
property, change to senderId
, add senderDisplayName
#389
Comments
Fix:
|
sender
propertysender
property, change to senderId
, add senderDisplayName
I thought this was purposely set this way because the library is agnostic of the data storage medium, and it is our responsibility to translate the inbound data object into the message itself. This may provide a bit of fuzziness, even if the uniqueness is more apparent. Frankly, it need not be unique as "Sue" could chat with "Sue" .. |
I don't think this has much to do with the data storage medium, but with the fact that you shouldn't be identifying someone uniquely by something that's inherently not unique. There is uniqueness logic around this value, but the value itself has no guaranteed uniqueness. I think this is a good change. |
@wdcurry - that's correct, this lib is data-agnostic. My comment above applies to changes that will occur in the |
Excellent. |
Yes, I need |
Also, the example project isn't clear enough on that self.sender needs to be set in order to display the avatar on the correct side. While the documentation states that this value must not be set to nil, the implications of not setting this value are unclear - thus, it's hard to debug if the avatars are all shown on the left side, even on outgoing messages. |
Completed and set for 6.0 release. See branch release-6.0. |
Hii @jessesquires , I would prefer that |
hey @rahulgautam - that's how I ended up implementing it ( |
see #328
The text was updated successfully, but these errors were encountered: