summaryrefslogtreecommitdiffstats
path: root/models/users.js
diff options
context:
space:
mode:
Diffstat (limited to 'models/users.js')
-rw-r--r--models/users.js24
1 files changed, 0 insertions, 24 deletions
diff --git a/models/users.js b/models/users.js
index 93fb409e..9147322c 100644
--- a/models/users.js
+++ b/models/users.js
@@ -109,13 +109,6 @@ Users.attachSchema(
type: String,
optional: true,
},
- 'profile.showDesktopDragHandles': {
- /**
- * does the user want to hide system messages?
- */
- type: Boolean,
- optional: true,
- },
'profile.hiddenSystemMessages': {
/**
* does the user want to hide system messages?
@@ -375,11 +368,6 @@ Users.helpers({
return _.contains(notifications, activityId);
},
- hasShowDesktopDragHandles() {
- const profile = this.profile || {};
- return profile.showDesktopDragHandles || false;
- },
-
hasHiddenSystemMessages() {
const profile = this.profile || {};
return profile.hiddenSystemMessages || false;
@@ -485,14 +473,6 @@ Users.mutations({
else this.addTag(tag);
},
- toggleDesktopHandles(value = false) {
- return {
- $set: {
- 'profile.showDesktopDragHandles': !value,
- },
- };
- },
-
toggleSystem(value = false) {
return {
$set: {
@@ -569,10 +549,6 @@ Meteor.methods({
Users.update(userId, { $set: { username } });
}
},
- toggleDesktopDragHandles() {
- const user = Meteor.user();
- user.toggleDesktopHandles(user.hasShowDesktopDragHandles());
- },
toggleSystemMessages() {
const user = Meteor.user();
user.toggleSystem(user.hasHiddenSystemMessages());