-
Notifications
You must be signed in to change notification settings - Fork 440
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
techdebt(NcAvatar) - optimize avatar wrappers #10602
Conversation
Signed-off-by: Maksim Sukharev <antreesy.web@gmail.com>
c7a1722
to
cf9d28d
Compare
@@ -164,7 +164,7 @@ import TopBarMediaControls from './TopBarMediaControls.vue' | |||
import TopBarMenu from './TopBarMenu.vue' | |||
|
|||
import { CONVERSATION } from '../../constants.js' | |||
import isInLobby from '../../mixins/isInLobby.js' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
isModeratorOrUser
is still used from this mixin
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Included in getParticipants
spreed/src/mixins/getParticipants.js
Line 32 in 7ced2bc
mixins: [isInLobby], |
Signed-off-by: Maksim Sukharev <antreesy.web@gmail.com>
Signed-off-by: Maksim Sukharev <antreesy.web@gmail.com>
Signed-off-by: Maksim Sukharev <antreesy.web@gmail.com>
Signed-off-by: Maksim Sukharev <antreesy.web@gmail.com>
Signed-off-by: Maksim Sukharev <antreesy.web@gmail.com>
cf9d28d
to
2111c38
Compare
/backport 450a927,cc6a7c564e35b8844bdaa94c2c9fcf96bf95b4dd,ec3ac59f783a9e28404d76036d203f2d1a2eac1a,15c6bcc281aa0544191af78920233f1e192cd6c1,ba60d64b4acab560a18dfd08b43d8b1c99fd9d80 to stable27 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nothing is blocking, tested 🦅
disableMenu() { | ||
// disable the menu if accessing the conversation as guest | ||
// or the message sender is a bridged user | ||
return this.$store.getters.getActorType() === 'guests' || this.actorType === ATTENDEE.ACTOR_TYPE.BRIDGED |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be disabled unless the actor type is user?
return this.$store.getters.getActorType() === 'guests' || this.actorType === ATTENDEE.ACTOR_TYPE.BRIDGED | |
return this.$store.getters.getActorType() === 'guests' || this.actorType !== ATTENDEE.ACTOR_TYPE.USERS |
Or do bots etc not fall into the path?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Logic follows the same as we had on removed component
Code will be captured before it will reach NcAvatar for: guests, deleted users, bots, changelog, emails
☑️ Resolves
🖼️ Screenshots
🚧 Tasks
🏁 Checklist
docs/
has been updated or is not required