summaryrefslogtreecommitdiffstats
path: root/model/channel.go
diff options
context:
space:
mode:
Diffstat (limited to 'model/channel.go')
-rw-r--r--model/channel.go11
1 files changed, 11 insertions, 0 deletions
diff --git a/model/channel.go b/model/channel.go
index b46f79f75..a7f007960 100644
--- a/model/channel.go
+++ b/model/channel.go
@@ -117,3 +117,14 @@ func (o *Channel) PreUpdate() {
func (o *Channel) ExtraUpdated() {
o.ExtraUpdateAt = GetMillis()
}
+
+func (o *Channel) PreExport() {
+}
+
+func GetDMNameFromIds(userId1, userId2 string) string {
+ if userId1 > userId2 {
+ return userId2 + "__" + userId1
+ } else {
+ return userId1 + "__" + userId2
+ }
+}