Fix MEMBER_JOINED activity type not being handled in activity timeline

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel 2021-05-05 18:28:10 +02:00
parent 86c2512c62
commit 4f6e203ced
No known key found for this signature in database
GPG Key ID: A061B9DDE0CA0773

View File

@ -83,6 +83,8 @@ export default class MemberActivityItem extends mixins(ActivityMixin) {
return "You added the member {member}.";
}
return "{profile} added the member {member}.";
case ActivityMemberSubject.MEMBER_JOINED:
return "{member} joined the group.";
case ActivityMemberSubject.MEMBER_UPDATED:
if (this.subjectParams.member_role && this.subjectParams.old_role) {
return this.roleUpdate;