Comments (1)
If you want to access group's public data such as name, photo and ... you should use the public field on each topic.
As you see in the example, I'm printing the name of the group here using item.public['fn']
:
print('Subscription[' + item.topic.toString() + ']: ' + item.public['fn'] + ' - Unread Messages:' + item.unread.toString());
This does not mean that the name of the group / chat is always going to be saved in that field.
The public
field is user defined and the structure of data is going to be defined by application. You might want to have an interface for that.
In the sandbox or web version, application is using fn
key to store full name and photo
to store the picture. Picture is stored as a string in public object (base64)
from dart-sdk.
Related Issues (17)
- [Feature] Is there a specific update plan? HOT 1
- Call setMeta error HOT 6
- Tinode Connect and Disconnect Issue HOT 9
- How to send pictures or files ? HOT 1
- How to use the library? HOT 15
- Can I create a new Topic and add new members to it? HOT 1
- Explain method _updateDeletedRanges()
- onPres can not will be triggered when a `pres` message is received
- is the sdk ready to use? HOT 4
- [Error] _Exception (Exception: topic not found (404)) HOT 2
- How to know who send message to me? HOT 2
- Q1) On login how to get the UserId? HOT 1
- How to get chatId/GroupId dynamic?\ HOT 1
- While getting the chat of a specific group/user how to differenciate the Messages i.e sender or reciever? HOT 1
- Is there any date/time variable in the chat to place them in order? HOT 1
- How can set the message head data? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dart-sdk.