Skip to content

Commit

Permalink
fix: show the addressee's alias instead of the target room's name on …
Browse files Browse the repository at this point in the history
…a button in the list of outgoing invitations
  • Loading branch information
Makcal committed May 29, 2024
1 parent e959c1c commit 4e2b511
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/bot/dialogs/outgoing_invitations.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ async def invitations_getter(dialog_manager: DialogManager, **kwargs):
ListGroup(
Row(
Button(
Format("{pos}. {item.room_name}"),
Format("{pos}. {item.addressee}"),
id=InvitationsWindowConsts.ROOM_NAME_BUTTON_ID,
),
Button(
Expand All @@ -139,7 +139,7 @@ async def invitations_getter(dialog_manager: DialogManager, **kwargs):
),
id=InvitationsWindowConsts.INVITATIONS_LIST_ID,
item_id_getter=lambda invitation: invitation.id,
items=lambda data: data["invitations"],
items="invitations",
),
state=OutgoingInvitationsSG.list,
getter=invitations_getter,
Expand Down

0 comments on commit 4e2b511

Please sign in to comment.