This commit is contained in:
mmrbnjd
2025-07-27 22:55:26 +03:30
parent 104e38c3b1
commit 43b6e4e746
3 changed files with 54 additions and 23 deletions

View File

@@ -174,12 +174,18 @@
public int UserID = 0;
async Task OnclickInbox(int ID)
{
Inbox1Items = await conversationService.ConversationAwaitingOurResponse();
Inbox2Items = await conversationService.MyConversationIsInProgress();
Inbox3Items = await conversationService.MyConversationIsFinished();
switch (ID)
{
case 1:
isSelectedInbox1 = true;
isSelectedInbox2 = false;
isSelectedInbox3 = false;
break;
case 2:
@@ -219,8 +225,15 @@
}
async Task onClickSelectedCon(int InboxID,Read_ConversationDto conversationDto)
{
// پر کردن SelectedCon
// مقدار دادن به SelectedChatUserName
if (InboxID == 1 )
Inbox1Items = await conversationService.ConversationAwaitingOurResponse();
if (InboxID == 2 )
Inbox2Items = await conversationService.MyConversationIsInProgress();
if ( InboxID == 3)
Inbox3Items = await conversationService.MyConversationIsFinished();
chatloading = true;
SelectedChatUserName = "در حال گفتگو با "+ conversationDto.UserFullName;
SelectedConversation = conversationDto;