fix issues
This commit is contained in:
@@ -156,16 +156,16 @@ public static class TestDataBuilder
|
||||
.Returns<long, string, string>(
|
||||
(chatId, chatType, chatTitle) =>
|
||||
{
|
||||
if (!sessions.ContainsKey(chatId))
|
||||
if (!sessions.TryGetValue(chatId, out var session))
|
||||
{
|
||||
var session = TestDataBuilder.ChatSessions.CreateBasicSession(
|
||||
session = TestDataBuilder.ChatSessions.CreateBasicSession(
|
||||
chatId,
|
||||
chatType
|
||||
);
|
||||
session.ChatTitle = chatTitle;
|
||||
sessions[chatId] = session;
|
||||
}
|
||||
return sessions[chatId];
|
||||
return session;
|
||||
}
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user