14 lines
240 B
Go
14 lines
240 B
Go
package postgres
|
|
|
|
import (
|
|
"telesrv/internal/domain"
|
|
)
|
|
|
|
func hasUnreadChannelReactionPG(reactions domain.ChannelMessageReactions) bool {
|
|
for _, recent := range reactions.Recent {
|
|
if recent.Unread {
|
|
return true
|
|
}
|
|
}
|
|
return false
|
|
}
|