GetPollOptions returns the plaintext options associated with a poll message, or nil if none were recorded (e.g. wuzapi restarted after the poll was sent).
(userID, msgID string)
| 107 | // message, or nil if none were recorded (e.g. wuzapi restarted after the |
| 108 | // poll was sent). |
| 109 | func (cm *ClientManager) GetPollOptions(userID, msgID string) []string { |
| 110 | cm.RLock() |
| 111 | defer cm.RUnlock() |
| 112 | if byUser := cm.pollOptions[userID]; byUser != nil { |
| 113 | return byUser[msgID] |
| 114 | } |
| 115 | return nil |
| 116 | } |