Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add user settings / preferences API endpoint #8694

Closed
dennispost opened this issue Oct 28, 2017 · 5 comments
Closed

Add user settings / preferences API endpoint #8694

dennispost opened this issue Oct 28, 2017 · 5 comments
Assignees
Labels

Comments

@dennispost
Copy link

Add an user settings / preferences endpoint to api, to make it possible to change user settings via authenticated api call.

Currently you get these settings object via socket message. But there is no way to change it via api or socket message.

[...]
"settings" : {
      "preferences" : {
        "newRoomNotification" : "door",
        "useEmojis" : true,
        "hideFlexTab" : false,
        "unreadRoomsMode" : false,
        "unreadAlert" : true,
        "convertAsciiEmoji" : true,
        "collapseMediaByDefault" : false,
        "saveMobileBandwidth" : true,
        "autoImageLoad" : true,
        "hideUsernames" : false,
        "highlights" : [

        ],
        "emailNotificationMode" : "disabled",
        "desktopNotificationDuration" : 0,
        "notificationsSoundVolume" : 100,
        "newMessageNotification" : "chime",
        "hideAvatars" : false,
        "hideRoles" : false,
        "viewMode" : 0,
        "desktopNotifications" : "all",
        "sendOnEnter" : "normal",
        "mobileNotifications" : "all"
      }
}
[...]
@jgtoriginal
Copy link
Contributor

@dennispost you got an endpoint to both get and set settings. Check the new docs

@graywolf336
Copy link
Contributor

@jgtoriginal sadly they're not user preferences, they're only the server's settings.

@jgtoriginal
Copy link
Contributor

@graywolf336 nice, I happen to need some user preferences methods, which I'm about to code the next week. Will focus basically on name, email, avatar & password for now.
I usually go by the code conventions when it comes to customization, is this something that might help you guys?

@graywolf336
Copy link
Contributor

@jgtoriginal Feel free to implement the user's preferences rest api and submit a pull request, we will review it and provide feedback. 👍

@jgtoriginal
Copy link
Contributor

@graywolf336 will do, thx very much!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants