mirror of
https://github.com/bitwarden/android.git
synced 2025-03-27 16:19:22 +03:00
assign new messageCallback when subbing
This commit is contained in:
parent
c2108fdda0
commit
d73bf6d225
1 changed files with 5 additions and 2 deletions
|
@ -36,9 +36,12 @@ namespace Bit.App.Services
|
||||||
{
|
{
|
||||||
if(_subscribers.ContainsKey(id))
|
if(_subscribers.ContainsKey(id))
|
||||||
{
|
{
|
||||||
return;
|
_subscribers[id] = messageCallback;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
_subscribers.Add(id, messageCallback);
|
||||||
}
|
}
|
||||||
_subscribers.Add(id, messageCallback);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue