fix: subscribing to an event with a different profile correctly updates the UI
Fixes: #1789
This commit is contained in:
@@ -413,7 +413,7 @@ const { identities } = useCurrentUserIdentities();
|
|||||||
|
|
||||||
const event = computed(() => props.event);
|
const event = computed(() => props.event);
|
||||||
|
|
||||||
const identity = ref<IPerson | undefined | null>(null);
|
const identity = computed(() => props.currentActor);
|
||||||
|
|
||||||
const ableToReport = computed((): boolean => {
|
const ableToReport = computed((): boolean => {
|
||||||
return (
|
return (
|
||||||
@@ -848,8 +848,6 @@ const cancelAnonymousParticipation = async (): Promise<void> => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
onMounted(async () => {
|
onMounted(async () => {
|
||||||
identity.value = props.currentActor;
|
|
||||||
|
|
||||||
try {
|
try {
|
||||||
if (window.isSecureContext) {
|
if (window.isSecureContext) {
|
||||||
anonymousParticipation.value = await anonymousParticipationConfirmed();
|
anonymousParticipation.value = await anonymousParticipationConfirmed();
|
||||||
|
|||||||
Reference in New Issue
Block a user