mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-06-17 04:18:53 -04:00
groupware: minor fix for the mock addressbook supplier
This commit is contained in:
@@ -30,13 +30,13 @@ var MockContactCardSupplierInstance *MockContactCardSupplier = &MockContactCardS
|
||||
},
|
||||
contacts: []jmap.ContactCard{
|
||||
{
|
||||
Id: "alan",
|
||||
Id: "mock:alan",
|
||||
AddressBookIds: map[string]bool{"mock:1": true},
|
||||
Type: jscontact.ContactCardType,
|
||||
Version: jmap.DEFAULT_CONTACT_CARD_VERSION,
|
||||
Created: mustParseTime("2026-05-26T10:21:00.000Z"),
|
||||
Kind: jscontact.ContactCardKindIndividual,
|
||||
ProdId: "OC",
|
||||
ProdId: "OC:mock",
|
||||
Uid: "dc2858d2-4826-412d-afc9-c4492f8f84bc",
|
||||
Updated: mustParseTime("2026-05-26T10:21:00.000Z"),
|
||||
Name: &jscontact.Name{
|
||||
|
||||
@@ -5,7 +5,6 @@ import (
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"slices"
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
"github.com/opencloud-eu/opencloud/pkg/jmap"
|
||||
@@ -405,6 +404,7 @@ func combineState[K ~string, S jmap.State | jmap.SessionState](m map[K]S) (S, er
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
func splitState[K ~string, S jmap.State | jmap.SessionState](state S) (map[K]S, error) {
|
||||
s := string(state)
|
||||
if strings.HasPrefix(s, combinedStateEncodingPrefix) {
|
||||
@@ -422,3 +422,4 @@ func splitState[K ~string, S jmap.State | jmap.SessionState](state S) (map[K]S,
|
||||
return map[K]S{K("jmap"): state}, nil
|
||||
}
|
||||
}
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user