stream-chat
Advanced tools
Comparing version 8.26.0 to 8.27.0
{ | ||
"name": "stream-chat", | ||
"version": "8.26.0", | ||
"version": "8.27.0", | ||
"description": "JS SDK for the Stream Chat API", | ||
@@ -5,0 +5,0 @@ "author": "GetStream", |
@@ -503,3 +503,3 @@ import { Channel } from './channel'; | ||
const updatedPoll = { ...poll }; | ||
let ownVotes = [...(message.poll.own_votes || [])]; | ||
let ownVotes = [...(message.poll?.own_votes || [])]; | ||
@@ -531,3 +531,3 @@ if (pollVote.user_id === this._channel.getClient().userID) { | ||
const updatedPoll = { ...poll }; | ||
const ownVotes = [...(message.poll.own_votes || [])]; | ||
const ownVotes = [...(message.poll?.own_votes || [])]; | ||
@@ -555,3 +555,3 @@ if (pollVote.user_id === this._channel.getClient().userID) { | ||
const updatedPoll = { ...poll }; | ||
const ownVotes = [...(message.poll.own_votes || [])]; | ||
const ownVotes = [...(message.poll?.own_votes || [])]; | ||
if (pollVote.user_id === this._channel.getClient().userID) { | ||
@@ -558,0 +558,0 @@ const index = ownVotes.findIndex((vote) => vote.option_id === pollVote.option_id); |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
5862359
61877