|
|
|
@ -341,7 +341,7 @@ type Notification struct {
|
|
|
|
|
////////////////////////user///////////////////////
|
|
|
|
|
UserInfoUpdated NotificationConf `yaml:"userInfoUpdated"`
|
|
|
|
|
//////////////////////friend///////////////////////
|
|
|
|
|
FriendApplication NotificationConf `yaml:"friendApplicationAdded"`
|
|
|
|
|
FriendApplicationAdded NotificationConf `yaml:"friendApplicationAdded"`
|
|
|
|
|
FriendApplicationApproved NotificationConf `yaml:"friendApplicationApproved"`
|
|
|
|
|
FriendApplicationRejected NotificationConf `yaml:"friendApplicationRejected"`
|
|
|
|
|
FriendAdded NotificationConf `yaml:"friendAdded"`
|
|
|
|
@ -357,6 +357,7 @@ type Notification struct {
|
|
|
|
|
|
|
|
|
|
func GetOptionsByNotification(cfg NotificationConf) utils.Options {
|
|
|
|
|
opts := utils.NewOptions()
|
|
|
|
|
opts = utils.WithOptions(opts, utils.WithNotification(true))
|
|
|
|
|
if cfg.UnreadCount {
|
|
|
|
|
opts = utils.WithOptions(opts, utils.WithUnreadCount())
|
|
|
|
|
}
|
|
|
|
|