Skip to content

Commit b663b09

Browse files
committed
Add a username to the ChatMember model
1 parent f537e54 commit b663b09

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

core/src/main/kotlin/me/madhead/tyzenhaus/core/service/GroupMembersService.kt

+1
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ class GroupMembersService(
2929
id = it.user.id.chatId,
3030
firstName = it.user.firstName,
3131
lastName = it.user.lastName,
32+
username = it.user.username?.usernameWithoutAt,
3233
)
3334
}
3435
)

entity/src/main/kotlin/me/madhead/tyzenhaus/entity/group/members/GroupMembers.kt

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ data class GroupMember(
1010
val id: Long,
1111
val firstName: String,
1212
val lastName: String,
13+
val username: String?,
1314
)
1415

1516
/**

0 commit comments

Comments
 (0)