kamax-matrix / matrix-java-sdk

Matrix Java SDK
GNU Affero General Public License v3.0
21 stars 14 forks source link

Setting device name during login #45

Closed MrCustomizer closed 6 years ago

MrCustomizer commented 6 years ago

I need to be able to set the device name during login to resolve https://github.com/MrCustomizer/palaver/issues/46.

I think it's the parameter initial_device_display_name, which probably has to be added to the MatrixClientContext.

MrCustomizer commented 6 years ago

I've done some more research: LoginPostBody needs initial_device_display_name as additional parameter. Additionally, there could be new field with setter in MatrixHttpClient for the device name. MatrixHttpClient's login method would then just have to pass the parameter to the login body. That's probably all that has to be done.

MrCustomizer commented 6 years ago

Works like a charm. Thanks for implementing this!