Skip to content

Commit

Permalink
fix(MessagesList): remove isParticipant checking as it is delayed to …
Browse files Browse the repository at this point in the history
…be correctly updated, causing scrolling to not to be excecuted

Signed-off-by: DorraJaouad <dorra.jaoued7@gmail.com>
  • Loading branch information
DorraJaouad committed Apr 15, 2024
1 parent 067c279 commit 3cb73e0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
3 changes: 1 addition & 2 deletions src/components/MessagesList/MessagesList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -643,8 +643,7 @@ export default {
},

async handleStartGettingMessagesPreconditions() {
if (this.token && this.isParticipant && !this.isInLobby) {

if (this.token && !this.isInLobby) {
// prevent sticky mode before we have loaded anything
this.isInitialisingMessages = true
const focusMessageId = this.getMessageIdFromHash()
Expand Down
6 changes: 2 additions & 4 deletions src/store/participantsStore.js
Original file line number Diff line number Diff line change
Expand Up @@ -230,12 +230,10 @@ const getters = {
}

if (participantIdentifier.attendeeId) {
if (state.attendees[token][participantIdentifier.attendeeId]) {
return state.attendees[token][participantIdentifier.attendeeId]
}
return null
return state.attendees[token][participantIdentifier.attendeeId]
}

// Fallback, sometimes actorId and actorType are set before the attendeeId
let foundAttendee = null
Object.keys(state.attendees[token]).forEach((attendeeId) => {
if (participantIdentifier.actorType && participantIdentifier.actorId
Expand Down

0 comments on commit 3cb73e0

Please sign in to comment.