mirror of
https://github.com/tulir/mautrix-whatsapp
synced 2024-12-04 20:52:54 +01:00
mediaid: fix receiver for groups
This commit is contained in:
parent
a55ba03fb2
commit
8e85d809fd
1 changed files with 3 additions and 0 deletions
|
@ -49,6 +49,9 @@ func MakeUserLoginID(user types.JID) networkid.UserLoginID {
|
|||
}
|
||||
|
||||
func ParseUserLoginID(user networkid.UserLoginID, deviceID uint16) types.JID {
|
||||
if user == "" {
|
||||
return types.EmptyJID
|
||||
}
|
||||
return types.JID{
|
||||
Server: types.DefaultUserServer,
|
||||
User: string(user),
|
||||
|
|
Loading…
Reference in a new issue