mirror of
https://github.com/wiz0u/WTelegramClient.git
synced 2025-12-06 06:52:01 +01:00
fix issue #21
Exception "An item with the same key has already been added" in Messages_GetHistory
This commit is contained in:
parent
c93481189a
commit
145ade4414
|
|
@ -223,7 +223,7 @@ namespace TL
|
||||||
for (int i = 0; i < count; i++)
|
for (int i = 0; i < count; i++)
|
||||||
{
|
{
|
||||||
var value = (T)reader.ReadTLValue(elementType);
|
var value = (T)reader.ReadTLValue(elementType);
|
||||||
dict.Add(getID(value), value is UserEmpty ? null : value);
|
dict[getID(value)] = value is UserEmpty ? null : value;
|
||||||
}
|
}
|
||||||
return dict;
|
return dict;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue