CreateP2P creates a P2P topic by generating two user's subsciptions to each other.
(initiator, invited *types.Subscription)
| 549 | |
| 550 | // CreateP2P creates a P2P topic by generating two user's subsciptions to each other. |
| 551 | func (topicsMapper) CreateP2P(initiator, invited *types.Subscription) error { |
| 552 | initiator.InitTimes() |
| 553 | initiator.SetTouchedAt(initiator.CreatedAt) |
| 554 | invited.InitTimes() |
| 555 | invited.SetTouchedAt(invited.CreatedAt) |
| 556 | |
| 557 | return adp.TopicCreateP2P(initiator, invited) |
| 558 | } |
| 559 | |
| 560 | // Get a single topic with a list of relevant users de-normalized into it |
| 561 | func (topicsMapper) Get(topic string) (*types.Topic, error) { |
nothing calls this directly
no test coverage detected